login
This site is supported by donations to The OEIS Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing.
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A240817 a(1) = 1 for n <= 5; thereafter a(n) = a(n-a(n-2))+a(n-a(n-5)) for n>3. 1
1, 1, 1, 1, 1, 2, 4, 6, 7, 8, 8, 7, 5, 8, 12, 12, 9, 7, 16, 11, 8, 13, 24, 14, 9, 14, 15, 9, 20, 16, 17, 21, 26, 13, 23, 40, 20 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,6

COMMENTS

Sequence dies (i.e. becomes undefined) after 37 terms.

LINKS

Table of n, a(n) for n=1..37.

PROG

(MAGMA) [n le 5 select 1 else Self(n-Self(n-2))+Self(n-Self(n-5)): n in [1..37]]; // Vincenzo Librandi, Sep 10 2016

CROSSREFS

Sequence in context: A030118 A023835 A272633 * A174416 A228728 A138888

Adjacent sequences:  A240814 A240815 A240816 * A240818 A240819 A240820

KEYWORD

nonn,fini,full

AUTHOR

N. J. A. Sloane, Apr 15 2014

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 10 12:30 EST 2019. Contains 329895 sequences. (Running on oeis4.)