|
|
A098395
|
|
a(n) is the next larger integer including the highest digit of a(n-1), a(1) = 1.
|
|
1
|
|
|
1, 10, 11, 12, 20, 21, 22, 23, 30, 31, 32, 33, 34, 40, 41, 42, 43, 44, 45, 50, 51, 52, 53, 54, 55, 56, 60, 61, 62, 63, 64, 65, 66, 67, 70, 71, 72, 73, 74, 75, 76, 77, 78, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 109, 119, 129, 139, 149
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
a(10) = 31 which has the largest digit (in base 10) 3. So a(11) must contain a 3 and be larger than 31. The least positive integer with these properties is 32. So a(10 + 1) = a(11) = 1. - David A. Corneth, Jul 11 2020
|
|
MATHEMATICA
|
nli[n_]:=Module[{x=Max[IntegerDigits[n]], k=n+1}, While[FreeQ[ IntegerDigits[ k], x], k++]; k]; NestList[nli, 1, 70] (* Harvey P. Dale, Jul 11 2020 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|