OFFSET
1,2
COMMENTS
Every positive odd integer m==3 (mod 8) is a unique sum of the form a(s)+2a(t), while other odd integers are not expressible in this form.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..5000
FORMULA
If f(x) = Sum_{n>=1}x^a(n), abs(x) < 1, then f(x)*f(x^2) = x^3/(1 - x^8).
MATHEMATICA
a[n_] := 2 * FromDigits[IntegerDigits[2*n-2, 2], 4] + 1; Array[a, 50] (* Amiram Eldar, Dec 16 2018 *)
PROG
(PARI) a145812(n) = 2*fromdigits(binary(n-1), 4) + 1;
a(n) = a145812(2*n-1); \\ Michel Marcus, Dec 13 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Oct 21 2008
EXTENSIONS
More terms from Michel Marcus, Dec 13 2018
STATUS
approved