[go: up one dir, main page]

login
A044066
Numbers n such that string 1,1 occurs in the base 4 representation of n but not of n-1.
0
5, 20, 37, 53, 69, 80, 101, 117, 133, 148, 165, 181, 197, 212, 229, 245, 261, 276, 293, 309, 320, 389, 404, 421, 437, 453, 468, 485, 501, 517, 532, 549, 565, 581, 592, 613, 629, 645, 660, 677, 693, 709, 724, 741, 757, 773, 788
OFFSET
1,1
MATHEMATICA
Transpose[SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 4], {1, 1}]>0, 1, 0], {n, 800}], {0, 1}]][[2]] (* The program uses the SequencePosition and SequenceCount functions from Mathematica version 10 *) (* Harvey P. Dale, Nov 28 2015 *)
CROSSREFS
Sequence in context: A344190 A326005 A063110 * A013337 A031082 A161445
KEYWORD
nonn,base
STATUS
approved