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

A044122
Numbers n such that string 3,2 occurs in the base 6 representation of n but not of n-1.
2
20, 56, 92, 120, 128, 164, 200, 236, 272, 308, 336, 344, 380, 416, 452, 488, 524, 552, 560, 596, 632, 668, 704, 720, 768, 776, 812, 848, 884, 920, 956, 984, 992, 1028, 1064, 1100, 1136, 1172, 1200, 1208, 1244, 1280, 1316, 1352, 1388, 1416, 1424, 1460, 1496
OFFSET
1,1
LINKS
MATHEMATICA
f[n_] := Length[StringPosition[ToString[FromDigits[IntegerDigits[n, 6]]], "32", 1]]; Select[Table[n, {n, 10000}], f[#] > 0 && f[# - 1] == 0 &] (* Vladimir Joseph Stephan Orlovsky, Jul 20 2011 *)
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 6], {3, 2}]>0, 1, 0], {n, 1500}], {0, 1}][[All, 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Apr 23 2020 *)
CROSSREFS
Sequence in context: A316935 A123456 A144521 * A044503 A344072 A109806
KEYWORD
nonn,base
STATUS
approved