login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A331632
Distinct values of A055945 in order of their appearance as n grows.
2
0, 1, 3, 7, 5, -2, 9, 2, 15, -6, 21, 6, 31, 17, -14, 27, -4, 13, -18, 35, 4, -10, 45, 14, 41, 10, 49, 18, 63, 33, -30, 51, -12, -42, 75, 12, 93, 30, 81, 105, 42, 127, 65, -62, 99, -28, 37, -90, 119, -8, 57, -70, 91, -36, 29, -98, 135, 8, 73, -54, 107, -20, -82
OFFSET
1,3
LINKS
Rémy Sigrist, Colored scatterplot of the first 74383 terms (where the color is function of the 2-adic valuation of the least k such that a(n) = A055945(k))
EXAMPLE
A055945 starts: 0, 0, 1, 0, 3, 0, 3, 0, 7, 0, 5, -2, 9, 2, 7, 0, 15, 0, ...
We keep: 0, 1, 3, 7, 5, -2, 9, 2, 15, ...
PROG
(PARI) s=[]; for (n=0, 151, v=n-fromdigits(Vecrev(binary(n)), 2); if (!setsearch(s, v), print1 (v ", "); s=setunion(s, [v])))
CROSSREFS
KEYWORD
sign,base
AUTHOR
Rémy Sigrist, Jan 23 2020
STATUS
approved