login
A043980
Numbers k such that 2 and 8 occur juxtaposed in the base-9 representation of k but not of k+1.
0
26, 74, 107, 155, 188, 242, 269, 317, 350, 398, 431, 479, 512, 560, 593, 641, 674, 722, 755, 803, 836, 884, 917, 971, 998, 1046, 1079, 1127, 1160, 1208, 1241, 1289, 1322, 1370, 1403, 1451, 1484, 1532, 1565, 1613, 1646, 1700
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 9], {2, 8}]>0 || SequenceCount[IntegerDigits[n, 9], {8, 2}]>0, 1, 0], {n, 2000}], {1, 0}][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 18 2021 *)
CROSSREFS
Cf. A007095.
Sequence in context: A299798 A039377 A043200 * A351538 A065302 A353635
KEYWORD
nonn,base
STATUS
approved