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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A025512 Index of n-th 2 in A022300. 2
3, 5, 8, 11, 13, 14, 16, 19, 22, 23, 25, 26, 28, 31, 33, 34, 37, 40, 41, 43, 44, 46, 49, 52, 53, 55, 58, 60, 61, 64, 67, 68, 70, 71, 73, 76, 78, 79, 82, 85, 87, 88, 90, 91, 94, 96, 97, 99, 102, 103, 105, 106, 109, 112, 114, 115, 117, 118, 121, 123, 124, 126, 129, 132, 133, 135 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Robert Israel, Table of n, a(n) for n = 1..10000

MAPLE

N:= 10^3: # to get all terms <= N

B:= Vector(N):

B[1..4]:= <1, 1, 2, 1>:

m:= 4: t:= 2:

for n from 1 while m < N do

  t:= 3-t;

  B[m]:= t;

  if B[n] = 2 and m+1 < N then

     B[m+1]:= t; m:= m+2

  else m:= m+1

  fi

od:

select(t -> B[t]=2, [$1..N]); # Robert Israel, Nov 02 2016

CROSSREFS

Sequence in context: A184410 A184332 A050098 * A288474 A310026 A213732

Adjacent sequences:  A025509 A025510 A025511 * A025513 A025514 A025515

KEYWORD

nonn

AUTHOR

David W. Wilson

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 20 22:20 EDT 2019. Contains 325189 sequences. (Running on oeis4.)