OFFSET
1,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..1012
FORMULA
a(n+1) = a(n) + A004186(a(n)), a(1) = 1. - Michael S. Branicky, May 21 2026
EXAMPLE
Start with first term 1, sort in descending order and add to 1, 1+1 = 2 (second term is 2).
Repeat: 2+2 = 4, 4+4 = 8, 8+8 = 16, 16+61 = 77, 77+77 = 154, 154+541 = 695 and so on.
MATHEMATICA
NestList[#+FromDigits[Reverse[Sort[IntegerDigits[#]]]] &, 1, 27] (* Stefano Spezia, May 20 2026 *)
PROG
(Python)
from itertools import islice
def agen(): # generator of terms
an = 1
while True:
yield an
an += int("".join(sorted(str(an), reverse=True)))
print(list(islice(agen(), 28))) # Michael S. Branicky, May 21 2026
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Dave Durgin, May 19 2026
EXTENSIONS
More terms from Michael S. Branicky, May 21 2026
STATUS
approved
