OFFSET
0,5
COMMENTS
Apparently, after the initial three 0's, only terms of A092054 occur, every other as a single copy, and every other in a batch of 3 duplicated terms.
LINKS
FORMULA
MATHEMATICA
A378992[n_] := n - DigitCount[n, 2, 1] - DigitCount[n + 1, 2, 1] + 1;
Array[A378992, 100, 0] (* or *)
MapIndexed[#2[[1]] - # &, Total[Partition[DigitCount[Range[0, 100], 2, 1], 2, 1], {2}]] (* Paolo Xausa, Dec 28 2024 *)
PROG
(PARI) A378992(n) = (1+(n-hammingweight(n)-hammingweight(1+n)));
CROSSREFS
KEYWORD
nonn,easy,new
AUTHOR
Antti Karttunen, Dec 16 2024
STATUS
approved