login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A108564 a(0) = 0, a(1) = 1, a(2) = 1, a(3) = 2, a(4) = 4, for n>3: a(n+1) = SORT[a(n) + a(n-1) + a(n-2) + a(n-3)], where SORT places digits in ascending order and deletes 0's. 4
0, 1, 1, 2, 4, 8, 15, 29, 56, 18, 118, 122, 134, 239, 136, 136, 456, 679, 147, 1148, 234, 228, 1577, 1378, 1347, 345, 4467, 3577, 3679, 1268, 11299, 12389, 23568, 24458, 11477, 12789, 22279, 137, 24668, 35789, 23788, 23488, 13377, 24469, 12258, 23579 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
Sorted tetranacci numbers, a.k.a. sorted Fibonacci 4-step sequence.
As found by T. D. Noe: Max=4556699. Cycle period=41652. Cycle starts with the 23944th term.
LINKS
Richard I. Hess, Problem 920: sorted Fibonacci sequence, Pi Mu Epsilon Journal, Vol. 10 (Fall 1998) No. 9, pp. 754-755.
EXAMPLE
a(8) = SORT[a(4) + a(5) + a(6) + a(7)] = SORT[108] = 18.
a(10) = SORT[a(6) + a(7) + a(8) + a(9)] = SORT[221] = 122.
MATHEMATICA
nxt[{a_, b_, c_, d_, e_}]:={b, c, d, e, FromDigits[Sort[DeleteCases[ IntegerDigits[ b+c+d+e], _?0]]]}; NestList[nxt, {0, 1, 1, 2, 4}, 50][[All, 1]] (* Harvey P. Dale, Jan 17 2022 *)
CROSSREFS
Sequence in context: A278554 A335473 A224959 * A066369 A239555 A275544
KEYWORD
base,easy,nonn
AUTHOR
Jonathan Vos Post, Jun 10 2005
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 17 23:23 EDT 2024. Contains 371767 sequences. (Running on oeis4.)