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

 

Logo

Annual appeal: Please make a donation to keep the OEIS running! Over 6000 articles have referenced us, often saying "we discovered this result with the help of the OEIS".
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A100476 a(1)=a(2)=a(3)=a(4)=1; for n > 4: a(n) = A000720(a(n-1)+a(n-2)+a(n-3)+a(n-4)). 0
1, 1, 1, 1, 2, 3, 4, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 18, 18, 19, 20, 21, 21, 22, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,5

COMMENTS

For n > 29 we have a(n) = 24. Starting with other values of a(1), a(2), a(3), a(4) what behaviors are possible? The sequence is in any case bounded. If for some k a(k)+a(k+1)+a(k+2)+a(k+3) > 400, then a(k+4) is smaller than the average of a(k),a(k+1), a(k+2) and a(k+3), which means that the sequence will always stick at a single integer after some point or go into a loop. Are there values a(1), a(2), a(3), a(4) such that the sequence would indeed exhibit cyclic behavior?

LINKS

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

Index entries for linear recurrences with constant coefficients, signature (1).

EXAMPLE

a(6) = A000720(a(2)+a(3)+a(4)+a(5)) = A000720(5) = 3.

MATHEMATICA

a = {1, 1, 1, 1}; Do[ AppendTo[a, PrimePi[a[[ -1]]+a[[ -2]]+a[[ -3]]+a[[ -4]]]], {70}]; a

RecurrenceTable[{a[1]==a[2]==a[3]==a[4]==1, a[n]==PrimePi[a[n-1]+ a[n-2]+ a[n-3]+a[n-4]]}, a[n], {n, 80}] (* Harvey P. Dale, Sep 19 2011 *)

CROSSREFS

Cf. A000720.

Sequence in context: A245092 A092601 A162906 * A290083 A248517 A007896

Adjacent sequences:  A100473 A100474 A100475 * A100477 A100478 A100479

KEYWORD

easy,nonn

AUTHOR

Jonathan Vos Post, Nov 22 2004

EXTENSIONS

Edited by Stefan Steinerberger, Aug 08 2007

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified November 22 09:35 EST 2017. Contains 295076 sequences.