Sorry in advance if this is not the right place to ask this simple question.
As it is usual, An=(a1,…,an+1)∈Zn+1:a1+⋯+an+1=0. Now we define the norm ∥(a1,…,an+1)∥:=∑i:ai>0ai. I would like an algorithm with input (n,k), that returns all elements in An with norm equal to k.