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

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
OFFSET
1,2
FORMULA
a(n) = A011539(n - 44) for n >= 53. - David A. Corneth, Jul 11 2020
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
Cf. A011539.
Sequence in context: A154770 A320601 A305130 * A207968 A207671 A154328
KEYWORD
nonn,base,easy
AUTHOR
Eric Angelini, Oct 26 2004
EXTENSIONS
Name corrected by David A. Corneth, Jul 11 2020
STATUS
approved