login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A107362 Sequence A={a(n),n=0,1,2,3,...} such that the subsequence S1={a(n)|n mod 5=0,3} is identical to A and S2=S\S1 (the complement of S1 in A) is identical to A except with the first term omitted. 0
1, 2, 1, 2, 2, 1, 2, 1, 2, 2, 2, 1, 2, 1, 2, 2, 2, 1, 1, 2, 2, 1, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 2, 2, 2, 2, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Table of n, a(n) for n=0..104.

FORMULA

a(0)=1, a(1)=2, a(2)=1 and, for n>2, a(n)=a(2[n/5] if n=0 mod 5, a(n)=a(n-2[n/5]) if n=1, 2 mod 5, a(n)=a(2[n/5]+1) if n=3 mod 5 and a(n)=a(n-2[n/5]-1) if n=4 mod 5.

EXAMPLE

S1={a(0),a{3),a(5),a(8),a(10),...}={1,2,1,2,2,...}=A. Similarly for A\S1.

CROSSREFS

Sequence in context: A001468 A014675 A308186 * A166332 A022303 A113189

Adjacent sequences:  A107359 A107360 A107361 * A107363 A107364 A107365

KEYWORD

eigen,nonn

AUTHOR

John W. Layman, May 24 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 31 03:23 EDT 2021. Contains 346367 sequences. (Running on oeis4.)