A267758 If a(n) is prime, then a(n) = a(n+1) - a(n-1): lexicographic first permutation of the nonnegative integers with this property.
0, 1, 2, 3, 5, 8, 4, 6, 7, 13, 20, 9, 10, 11, 21, 12, 14, 15, 16, 17, 33, 18, 19, 37, 56, 22, 23, 45, 24, 25, 26, 27, 28, 29, 57, 30, 31, 61, 92, 32, 34, 35, 36, 38, 39, 40, 41, 81, 42, 43, 85, 44, 46, 47, 93, 48, 49, 50, 51, 52, 53, 105, 54, 55, 58, 59
Offset: 0
Keywords
Links
- M. F. Hasler, Table of n, a(n) for n = 0..1000
- Eric Angelini, Prime a(n) as difference of its neighbours, SeqFan list, Jan. 21, 2016.
- Index entries for sequences that are permutations of the natural numbers
Crossrefs
Cf. A217199.
Programs
-
PARI
{N=200; a=[]; U=[]; L=0; while(#a
A342701 a(n) is the second smallest k such that phi(n+k) = phi(k), or 0 if no such solution exists.
3, 7, 5, 14, 9, 34, 7, 16, 15, 26, 11, 68, 39, 28, 15, 32, 33, 72, 25, 40, 35, 56, 17, 101, 45, 37, 45, 56, 29, 152, 31, 61, 39, 56, 35, 144, 37, 61, 39, 74, 41, 128, 35, 88, 45, 161, 47, 192, 49, 82, 51, 74, 95, 216, 43, 97, 75, 203, 59, 304, 91, 88, 63, 122Offset: 1Keywords
Comments
Sierpiński (1956) proved that there is at least one solution for all n>=1.Schinzel (1958) proved that there are at least two solutions k to phi(n+k) = phi(k) for all n <= 8*10^47. Schinzel and Wakulicz (1959) increased this bound to 2*10^58.Schinzel (1958) observed that under the prime k-tuple conjecture there is a second solution for all even n.Holt (2003) proved that there is a second solution for all even n <= 1.38 * 10^26595411.Examples
a(1) = 3 since the solutions to the equation phi(1+k) = phi(k) are k = 1, 3, 15, 104, 164, ... (A001274), and 3 is the second solution.
References
- Richard K. Guy, Unsolved Problems in Number Theory, 3rd edition, Springer, 2004, section B36, page 138-142.
- József Sándor and Borislav Crstici, Handbook of Number theory II, Kluwer Academic Publishers, 2004, Chapter 3, p. 217-219.
- Wacław Sierpiński, Sur une propriété de la fonction phi(n), Publ. Math. Debrecen, Vol. 4 (1956), pp. 184-185.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
- Jeffery J. Holt, The minimal number of solutions to phi(n)=phi(n+k), Math. Comp., Vol. 72, No. 244 (2003), pp. 2059-2061.
- Andrzej Schinzel, Sur l'équation phi(x + k) = phi(x), Acta Arith., Vol. 4, No. 3 (1958), pp. 181-184.
- Andrzej Schinzel and Andrzej Wakulicz, Sur l'équation phi(x+k)=phi(x). II, Acta Arith., Vol. 5, No. 4 (1959), pp. 425-426.
- Eric Weisstein's World of Mathematics, k-Tuple Conjecture.
Programs
-
Mathematica
f[n_, 0] = 0; f[n_, k0_] := Module[{k = f[n, k0 - 1] + 1}, While[EulerPhi[n + k] != EulerPhi[k], k++]; k]; Array[f[#, 2] &, 100]
-
PARI
a(n) = my(k=1, nb=0); while ((nb += (eulerphi(n+k)==eulerphi(k))) != 2, k++); k; \\ Michel Marcus, Mar 19 2021
A217198 A sequence of odd primes p such that 2p-1 is prime and no p is equal to any 2q-1 with q in the sequence.
3, 7, 31, 37, 97, 139, 157, 199, 211, 229, 271, 307, 331, 337, 367, 379, 439, 499, 547, 577, 601, 607, 619, 691, 727, 811
Offset: 1
Keywords
Comments
Links
- A. Schinzel and Andrzej Wakulicz, Sur l'équation phi(x+k)=phi(x), I., Acta Arith. 4 (1958), 181-184.
- A. Schinzel and Andrzej Wakulicz, Sur l'équation phi(x+k)=phi(x). II. Acta Arith. 5 1959 425-426.
Comments