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”).

A044148
Numbers n such that the string 1,3 occurs in the base 7 representation of n but not of n-1.
0
10, 59, 70, 108, 157, 206, 255, 304, 353, 402, 413, 451, 490, 549, 598, 647, 696, 745, 756, 794, 843, 892, 941, 990, 1039, 1088, 1099, 1137, 1186, 1235, 1284, 1333, 1382, 1431, 1442, 1480, 1529, 1578, 1627, 1676, 1725, 1774
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 7], {1, 3}]>0, 1, 0], {n, 2000}], {0, 1}][[All, 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Apr 08 2018 *)
CROSSREFS
Sequence in context: A126730 A126478 A223470 * A044529 A129330 A045950
KEYWORD
nonn,base
EXTENSIONS
Definition reworded by Harvey P. Dale, Apr 08 2018
STATUS
approved