STATUS
reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
(PARI) a(n)=floor(n+1-2^floor(loglogint(n+1-10^-27)/log(, 2)))
nonn,easy,changed
Without the constant 1, Ralf Stephan's g.f. becomes A(x) = x/(1-x)^2 - (1/(1-x)) * Sum_{k>=1} 2^(k-1)*x^(2^k)) and satisfies the functional equation A(x) - 2*(1+x)*A(x^2) = x*(1 - x - x^2)/(1 - x^2). - Petros Hadjicostas, Apr 27 2020
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
(PARI) a(n)= n - 1<<logint(n, 2) + 1; \\ Ruud H.G. van Tol, Dec 13 2024
approved
editing
reviewed
approved