|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
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
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|