|
Search: id:A103865
|
|
|
| A103865 |
|
a(1) = 1; a(n) = smallest positive integer not occurring earlier in sequence if n is a composite. a(n) = a(n-1)th smallest positive integer among those not occurring earlier in sequence if n is prime. |
|
+0 4
|
|
| 1, 2, 4, 3, 7, 5, 11, 6, 8, 9, 19, 10, 22, 12, 13, 14, 30, 15, 33, 16, 17, 18, 40, 20, 21, 23, 24, 25, 53, 26, 56, 27, 28, 29, 31, 32, 68, 34, 35, 36, 76, 37, 79, 38, 39, 41, 87, 42, 43, 44, 45, 46, 98, 47, 48, 49, 50, 51, 109, 52, 112, 54, 55, 57, 58, 59, 125, 60, 61, 62, 132
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
COMMENT
|
Sequence is a permutation of the positive integers.
|
|
EXAMPLE
|
Since 5 is prime, a(5) = a(4)th (3rd) smallest positive integer not occurring earlier in sequence. The terms not occurring earlier in sequence are 5,6,7,8,9..., and the 3rd of these is 7.
|
|
CROSSREFS
|
Cf. A103864, A103866, A103867.
Adjacent sequences: A103862 A103863 A103864 this_sequence A103866 A103867 A103868
Sequence in context: A084385 A073885 A120234 this_sequence A065579 A056536 A108228
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Leroy Quet (qq-quet(AT)mindspring.com), Feb 18 2005
|
|
EXTENSIONS
|
More terms from Franklin T. Adams-Watters (FrankTAW(AT)Netscape.net), Nov 22 2006
|
|
|
Search completed in 0.002 seconds
|