OFFSET
0,5
EXAMPLE
The first terms, alongside f(n), are:
n a(n) f(n)
-- ---- ----
0 0 0
1 1 2
2 1 3
3 1 5
4 4 5
5 1 7
6 6 8
7 1 10
8 6 9
9 6 11
10 1 12
11 6 14
12 1 14
13 13 16
14 1 17
PROG
(PARI) a = vector(73, n, n-1); for (n=0, #a-1, m=n+hammingweight(n); if (m<#a, a[1+m]=min(a[1+n], a[1+m]))); print (a)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, May 21 2022
STATUS
approved