|
Search: id:A132988
|
|
|
| A132988 |
|
a(n) = smallest k not occurring earlier such that k divides prime(n)+1. |
|
+0 5
|
|
| 1, 2, 3, 4, 6, 7, 9, 5, 8, 10, 16, 19, 14, 11, 12, 18, 15, 31, 17, 24, 37, 20, 21, 30, 49, 34, 13, 27, 22, 38, 32, 33, 23, 28, 25, 76, 79, 41, 42, 29, 36, 26, 48, 97, 66, 40, 53, 56, 57, 46, 39, 60, 121, 63, 43, 44, 45, 68, 139, 47, 71, 98, 77, 52, 157, 106, 83, 169, 58, 35, 59
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
COMMENT
|
Sequence is a permutation of the positive integers.
Cycles (including fixed points) with elements <= 200000 are (1), (2), (3), (4), (5,6,7,9,8), (10), (12,19,17,15), (72), (94,123,113,103), (160,314,521,1867,2677,1003,882,762,528,633,312,207), (400,457,646), (5096,8269,10609,9322), (93388,100549).
|
|
LINKS
|
K. Brockhaus, Table of n, a(n) for n = 1..10000
Index entries for sequences that are permutations of the natural numbers
|
|
EXAMPLE
|
n = 11, prime(11)+1 = 32, numbers not occurring up to a(10) are 11, 12, 13, 14, 15, 16, 17, ... . The smallest one that divides 32 is 16, hence a(11) = 16.
|
|
PROGRAM
|
(PARI) {m=71; w=vectorsmall(3*m); for(n=1, m, k=1; while(w[k]||(prime(n)+1)%k>0, k++); print1(k, ", "); w[k]=1)}
|
|
CROSSREFS
|
Cf. A132989 (inverse), A132990 (trajectory of 11), A132991 (retrograde trajectory of 11).
Sequence in context: A135604 A084826 A118944 this_sequence A114956 A039256 A039197
Adjacent sequences: A132985 A132986 A132987 this_sequence A132989 A132990 A132991
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Sep 14 2007
|
|
|
Search completed in 0.002 seconds
|