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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A244893 a(n) = a(n-a(n-1)) with initial values 2,3,2. 1
2, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

After first term, periodic with period {3,2,3}.

LINKS

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

S. W. Golomb, Discrete chaos: sequences satisfying "strange" recursions, unpublished manuscript, circa 1990 [cached copy, with permission (annotated)]

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

FORMULA

a(n) = A164359(n), n>1. - R. J. Mathar, Jul 25 2014

MAPLE

f:=proc(n, o, S) option remember; # o = offset, S = init. terms

L:=nops(S);

if n < 0 then 0

elif n <= o+L-1 then S[n-o+1]

else f(n-f(n-1, o, S), o, S); fi; end;

[seq(f(n, 1, [2, 3, 2]), n=1..100)];

MATHEMATICA

Join[{2}, LinearRecurrence[{0, 0, 1}, {3, 2, 3}, 75]] (* Ray Chandler, Aug 25 2015 *)

CROSSREFS

Sequence in context: A124474 A282162 A276857 * A321478 A076982 A283617

Adjacent sequences:  A244890 A244891 A244892 * A244894 A244895 A244896

KEYWORD

nonn

AUTHOR

N. J. A. Sloane, Jul 17 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 October 21 06:25 EDT 2019. Contains 328292 sequences. (Running on oeis4.)