|
Search: id:A094293
|
|
|
| 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
|
|
|
Search completed in 0.002 seconds
|