Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A094293
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A094293 a(1)= 1, a(2) = 2,let the index of first occurrence of n be k then from a(k+1) onwards the next n*(k-1) terms are the first (k-1) terms repeated n times, a(k+1) = a(1), a(k+2) = a(2) etc. +0
2
1, 2, 1, 1, 3, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 4, 1, 2, 1, 1, 3, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 3, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 3, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 3, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 5, 1, 2, 1, 1, 3, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 4 (list; graph; listen)
OFFSET

1,2

COMMENT

Let r be the index of the first occurrence of n-1 then the index of first occurrence of n is n*(r-1) + r + 1.

EXAMPLE

a(5) = 3 and the first four terms are 1,2,1,1. hence the next 12 terms are 1,2,1,1,1,2,1,1,1,2,1,1, and a(18) = 4 (the first occurrence) and so on.

CROSSREFS

Cf. A001511.

Sequence in context: A086599 A030272 A057898 this_sequence A036036 A076259 A107359

Adjacent sequences: A094290 A094291 A094292 this_sequence A094294 A094295 A094296

KEYWORD

nonn,uned

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Apr 28 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified August 29 17:54 EDT 2008. Contains 143238 sequences.


AT&T Labs Research