OFFSET
1,3
LINKS
FORMULA
EXAMPLE
MATHEMATICA
a[1] = 1; a[n_] := a[n] = Count[Array[s, n-1], s[n-1]]; s[n_] := s[n] = DigitCount[a[n], 2, 1]; Array[a, 100] (* Amiram Eldar, Jul 27 2023 *)
PROG
(PARI) lista(nn) = my(va = vector(nn)); va[1] = 1; for (n=2, nn, va[n] = #select(x->hammingweight(x)==hammingweight(va[n-1]), Vec(va, n-1)); ); va; \\ Michel Marcus, Jul 28 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Feb 05 2008
EXTENSIONS
Name edited by Michel Marcus, Jul 28 2023
STATUS
approved