cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-8 of 8 results.

A341887 a(n) = A341886(n)/2; numbers k such that A307437(k) is even.

Original entry on oeis.org

256, 512, 1024, 2816, 4096, 5632, 8192, 11264, 27136, 28928, 48896, 54272, 61184, 65536, 75008, 82688, 84992, 90112, 94464, 97792, 105216, 122368, 124160, 128000, 138240, 139520, 150016, 158720, 166656, 167168, 167936, 168704, 176128, 183808, 185856, 195584
Offset: 1

Views

Author

Jianing Song, Feb 22 2021

Keywords

Comments

Indices of even terms in A307437; A341886 is the main entry.
Numbers k such that 2^k is a term: 8, 9, 10, 12, 13, 16, 18, 19, 20, 21, 22, 23, ... Are all sufficiently large powers of 2 terms? - Chai Wah Wu, Feb 24 2021
We don't know. From the comments in A341886, 2^k is a term if and only if t*2^(k+1)+1 is composite for t = 1, 2, 3. But we don't know if there are infinitely many Fermat primes. - Jianing Song, Feb 26 2021
All terms are divisible by 256. See my comment in A341886. - Jianing Song, Feb 27 2021

Examples

			psi(2048) = 512 is divisible by 2*256, and there is no odd m < 2048 such that 2*256 | psi(m), so 256 is a term.
psi(47104) = 5632 is divisible by 2*2816, and there is no m < 47104 such that 2*2816 | psi(m), so 2816 is a term.
		

Crossrefs

Programs

  • PARI
    forstep(n=2, 10000, 2, if(A307437(n)%2==0, print1(n, ", "))) \\ see A307437 for its program

Extensions

a(9)-a(20) from Michel Marcus, Feb 24 2021
a(21)-a(36) from Chai Wah Wu, Feb 24 2021

A342038 a(n) is the index of the first occurrence of prime(n) in A307437.

Original entry on oeis.org

1, 2, 3, 5, 6, 4, 9, 11, 7, 15, 18, 20, 21, 23, 13, 29, 30, 33, 35, 12, 39, 41, 22, 16, 25, 17, 53, 54, 28, 63, 65, 34, 69, 37, 75, 78, 81, 83, 43, 89, 45, 19, 32, 49, 99, 105, 111, 113, 38, 58, 119, 60, 125, 64, 131, 67, 135, 138, 70, 47, 73, 153, 31, 52, 79
Offset: 2

Views

Author

Jianing Song, Feb 26 2021

Keywords

Comments

a(n) is the first k such that the smallest m such that C_(2k) is a subgroup of (Z/mZ)* is m = prime(n), where C_(2k) is the cyclic group of order 2k and (Z/mZ)* is the multiplicative group of integers modulo m.
a(n) is well-defined since A307437((p-1)/2) = p for odd primes p.

Examples

			For n = 7, prime(n) = 17. The first k such that: (i) C_(2k) is a subgroup of (Z/17Z)*; (ii) there is no m < 17 such that C_(2k) is a subgroup of (Z/mZ)* is k = 4, so a(7) = 4.
For n = 21, prime(n) = 73. The first k such that: (i) C_(2k) is a subgroup of (Z/73Z)*; (ii) there is no m < 73 such that C_(2k) is a subgroup of (Z/mZ)* is k = 12, so a(21) = 12.
		

Crossrefs

Programs

  • PARI
    a(n) = if(n>=2, my(p=prime(n)); for(k=1, oo, if(A307437(k)==p, return(k)))) \\ see A307437 for its program

A341888 Indices of record values of A307437(k)/k.

Original entry on oeis.org

1, 4, 12, 19, 59, 167, 196, 197, 227, 317, 457, 521, 706, 1532, 1861, 1997, 2053, 2348, 3833, 5227, 19891, 47303, 54973, 58603, 101401, 102307, 138163, 170167, 707467, 860831
Offset: 1

Views

Author

Jianing Song, Feb 22 2021

Keywords

Comments

Except for a(1) = 1 and a(13) = 706, the fractional part of A307437(k)/k appears to be monotonically strictly decreasing. - Chai Wah Wu, Feb 24 2021

Examples

			Let b(k) = A307437(k). Numeric values of b(k)/k for the terms:
    k    b(k)/k
  ----  ---------
     1   3.000000
     4   4.250000
    12   6.083333
    19  10.052632
    59  12.016949
   167  14.005988
   196  16.005102
   197  18.005076
   227  24.004405
   317  26.003155
   457  30.002188
   521  32.001919
   706  35.007082
  1532  38.000653
  1861  40.000537
  1997  44.000501
  2053  46.000487
  2348  56.000426
  3833  60.000261
  5227  76.000191
		

Crossrefs

Cf. A307437.

Programs

  • PARI
    my(M = 1); for(k=1, 5000, if(A307437(k)/k > M, print1(k, ", "); M = A307437(k)/k)) \\ see A307437 for its program

Extensions

a(21)-a(28) from Chai Wah Wu, Feb 24 2021
a(29)-a(30) from Chai Wah Wu, Feb 26 2021

A342037 Numbers k such that A307437(k) is divisible by 3.

Original entry on oeis.org

1, 27, 702, 1107, 1431, 2187, 3375, 3456, 4266, 5157, 5805, 6561, 6831, 7668, 8073, 11313, 11961, 12771, 12825, 13149, 13176, 13257, 14526, 14715, 14796, 15039, 16011, 16227, 16497, 17388, 17496, 17631, 19251, 19332, 19413, 20223, 20277, 20871, 20952, 21654
Offset: 1

Views

Author

Jianing Song, Feb 26 2021

Keywords

Comments

Indices of terms of A307437 that is divisible by 3.
For e > 0, 3^e is a term if and only if 2*3^e+1 is composite. Hence this sequence is infinite.
All terms > 1 are divisible by 27. Proof: Write a term k = 3^a*r > 1, 3 does not divide r. Suppose A307437(k) = 3^e*s, 3 does not divide s, e >= 1.
i) a = 0. If s = 1, then 2k = 2r divides psi(3^e) = 2*3^(e-1) => k = r = 1, a contradiction. Hence s > 1, then 2k = 2r divides psi(s).
ii) a = 1. If s has a prime factor congruent to 1 modulo 3, then r | psi(s) => 2k = 6r divides psi(s). Otherwise, we must have 3 | psi(3^e) => e >= 2, then 2k = 6r divides psi(7*s), a contradiction.
iii) a = 2. If s has a prime factor congruent to 1 modulo 9, then r | psi(s) => 2k = 18r divides psi(s). Otherwise, we must have 9 | psi(3^e) => e >= 3, then 2k = 18r divides psi(19*s), a contradiction.

Examples

			The smallest k such that 2*702 | psi(k) is k = 4293 = 3^4 * 53, hence 702 is a term.
The smallest k such that 2*3375 | psi(k) is k = 20331 = 3^4 * 251, hence 3375 is a term.
The smallest k such that 2*3456 | psi(k) is k = 20817 = 3^4 * 257, hence 3456 is a term.
		

Crossrefs

Programs

  • PARI
    print1("1, "); forstep(n=27, 10000, 27, if(A307437(n)%3==0, print1(n, ", "))) \\ see A307437 for its program

Extensions

More terms from Chai Wah Wu, Feb 27 2021

A342039 a(n) is the index of the first occurrence of the term in A307437 that is divisible by p and greater than p, p = prime(n).

Original entry on oeis.org

256, 27, 10, 42, 40, 66, 40, 72, 66, 42, 390, 333, 180, 301, 46, 104, 145, 1230, 264, 280, 396, 195, 82, 132, 240, 275, 408, 106, 1566, 364, 693, 2080, 374, 552, 222, 1725, 2730, 162, 166, 946, 178, 990, 665, 480, 294, 1386, 4305, 1221, 226, 456, 348, 952
Offset: 1

Views

Author

Jianing Song, Feb 26 2021

Keywords

Comments

Different from A342038, here a nontrivial multiple of p is required.
a(n) exists for all n: from the formula in A307437 we know a((p-1)/2*p^e) = p^(e+1) if p is an odd prime and (p-1)*p^e+1 is composite. For fixed p, there exist infinitely many e such that (p-1)*p^e+1 is composite.
Conjecture: a(n) >= prime(n)-1 for all n.

Crossrefs

Programs

  • PARI
    a(n) = my(p=prime(n)); for(k=1, oo, my(m=A307437(k)); if(m>p&&m%p==0, return(k))) \\ see A307437 for its program

Formula

For n = 3, prime(n) = 5. The first term in A307437 that is divisible by 5 and greater than 5 is A307437(10) = 25 = 5^2, hence a(3) = 10.
For n = 14, prime(n) = 47. The first term in A307437 that is divisible by 47 and greater than 47 is A307437(46) = 235 = 5*47, hence a(14) = 46.

A307436 a(n) is the smallest k such that (Z/kZ)* contains C_(2n) X C_(2n) as a subgroup, where (Z/kZ)* is the multiplicative group of integers modulo n.

Original entry on oeis.org

8, 65, 63, 544, 275, 455, 1247, 1088, 513, 1025, 1541, 7081, 4187, 3277, 1891, 12416, 14111, 2701, 43739, 7667, 2107, 10235, 6533, 11543, 12625, 8321, 8829, 31753, 13747, 8723, 116003, 49408, 10787, 39593, 14981, 23579, 33227, 104653, 12403, 45067, 61337
Offset: 1

Views

Author

Jianing Song, Apr 08 2019

Keywords

Comments

a(n) exists for all n: by Dirichlet's theorem on arithmetic progressions, there exists two primes p, q congruent to 1 modulo 2n, in which case C_(2n) X C_(2n) is a subgroup of (Z/(p*q)Z)*.
a(n) is the smallest k such that there exists some x, y such that ord(x,k) = ord(y,k) = 2n and the set of powers of x and the set of powers of y modulo k have trivial intersection {1}, where ord(x,k) is the multiplicative order of x modulo n.

Examples

			(Z/8Z)* = C_2 X C_2, in which {3^e mod 8} = {3, 1} and {3^e mod 8} = {5, 1};
(Z/65Z)* = C_4 X C_12, in which {8^e mod 65} = {8, 64, 57, 1} and {12^e mod 65} = {12, 14, 38, 1};
(Z/63Z)* = C_6 X C_6, in which {2^e mod 63} = {2. 4. 8, 16, 32, 1} and {5^e mod 63} = {5, 25, 62, 58, 38, 1};
(Z/544Z)* = C_2 X C_8 X C_16, in which {9^e mod 544} = {9, 81, 185, 33, 297, 497, 121, 1} and {13^e mod 544} = {13, 169, 21, 273, 285, 441, 293, 1};
(Z/275Z)* = C_10 X C_20, in which {4^e mod 275} = {4, 16, 64, 256, 199, 246, 159, 86, 69, 1} and {6^e mod 275} = {6, 36, 216, 196, 76, 181, 261, 191, 46, 1};
(Z/455Z)* = C_2 X C_12 X C_12, in which {2^e mod 455} = {2, 4, 8, 16, 32, 64, 128, 256, 57, 114, 228, 1} and {3^e mod 455} = {3, 9, 27, 81, 243, 274, 367, 191, 118, 354, 152, 1}.
		

Crossrefs

Cf. A307437.

Programs

  • PARI
    a(n) = my(d=1, v=znstar(d)[2]); while(sum(i=1, #v, !(v[i]%(2*n)))<2, d++; v=znstar(d)[2]); d

A341886 Numbers k such that the smallest m such that k | psi(m) is even, psi = A002322.

Original entry on oeis.org

512, 1024, 2048, 5632, 8192, 11264, 16384, 22528, 54272, 57856, 97792, 108544, 122368, 131072, 150016, 165376, 169984, 180224, 188928, 195584, 210432, 244736, 248320, 256000, 276480, 279040, 300032, 317440, 333312, 334336, 335872, 337408, 352256, 367616, 371712
Offset: 1

Views

Author

Jianing Song, Feb 22 2021

Keywords

Comments

Even k such that A307437(k/2) is even. Note that k must be divisible by 4.
Write k = r*2^e with odd r. Let s be the smallest odd number such that k | psi(s), t be the smallest number such that r | psi(t), v2(psi(t)) = a, then k is a term <=> a < e, t*2^(e+2) < s, where v2 = A007814 is the 2-adic valuation.
Proof: Let m be the smallest number such that k | psi(k).
"<=" If m is odd, then m >= s > t*2^(e+2), but k | psi(t*2^(e+2)), contradicting with minimality of m.
"=>" If a >= e, then m = t is odd. Write m = l*2^b, b >= 4, l odd, then k | lcm(psi(l), 2^(b-2)) => r | psi(l) => l >= t. If(v2(psi(l))) < b-2, then b-2 >= e => t*2^(e+2) <= l*2^b = m < s. If(v2(psi(l))) > b-2, then k | psi(l), contradicting with minimality of m. QED.
A special case: suppose k = p*2^e where p is an odd prime. Let q be the smallest number such that p | psi(q), suppose that q = p*2^a*l + 1 < p^2, l odd. Then k is a term <=> a < e; t*2^e + 1 is composite for t = 1, 2, 3; t'*p*2^e + 1 is composite for t < 4*q/p.
Let s be the smallest odd number such that k | psi(s), then k is a term <=> a < e, q*2^(e+2) < s. Suppose that a < e, there are two cases:
(i) s = (p_1)^(e_1)*(p_2)^(e_2), p | psi((p_1)^(e_1)), 2^e | psi((p_2)^(e_2)). Since a < e, p_2 != q, so (p_1)^(e_1) = q, s = q*(t*2^e + 1) with t*2^e + 1 prime.
(ii) s = (p_1)^(e_1), n | psi((p_1)^(e_1)), so s = t'*p*2^e + 1 with t'*p*2^e + 1 prime.
Hence q*2^(e+2) < s <=> t*2^e + 1 is composite for t = 1, 2, 3; t'*p*2^e + 1 is composite for t < 4*q/p. QED.
2^e is a term <=> t*2^e + 1 is composite for t = 1, 2, 3. It follows that this sequence is infinite.
3*2^e is a term <=> t*2^e + 1 is composite for t = 1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27.
From Jianing Song, Feb 27 2021: (Start)
All terms are divisible by 512. Proof: Write a term k = 2^a*r > 2 with odd r. Suppose the smallest m such that k divides psi(m) is m = 2^e*s with odd s, e >= 1.
i) a <= 1. If s = 1, then k = r divides psi(2^e) => k <= 2r = 2, a contradiction. Hence s > 1, then k = r or 2r divides psi(s).
ii) a = 2. If s has a prime factor congruent to 1 modulo 3, then r | psi(s) => k = 4r divides psi(s). Otherwise, we must have 4 | psi(2^e) => e >= 4, then k = 4r divides psi(5*s), a contradiction.
iii) a = 3. If s has a prime factor congruent to 1 modulo 8, then r | psi(s) => k = 8r divides psi(s). Otherwise, we must have 8 | psi(3^e) => e >= 5, then k = 8r divides psi(17*s), a contradiction.
The cases a = 4, 5, 6, 7, 8 are similar. (End)

Examples

			psi(2048) = 512 is divisible by 512 = 2^9, and there is no odd m < 2048 such that 512 | psi(m), so 512 is a term. Also, 512 is a term since 1*512 + 1 = 513 = 3^3 * 19, 2*512 + 1 = 1025 = 5^2 * 41, 3*512 + 1 = 1537 = 29 * 53 are all composite.
psi(47104) = 5632 is divisible by 5632 = 11*2^9, and there is no m < 47104 such that 5632 | psi(m), so 5632 is a term. Also, 5632 is a term since t*512 + 1 is composite for t = 1, 2, 3; t*5632 + 1 is composite for t < 4*23/11 (t <= 8).
		

Crossrefs

Programs

  • PARI
    forstep(n=2, 10000, 2, if(A307437(n)%2==0, print1(2*n, ", "))) \\ see A307437 for its program

Formula

a(n) = A341887(n)*2.

Extensions

More terms from Chai Wah Wu, Feb 25 2021

A341845 a(n) = A061026(2n): smallest k such that 2n divides phi(k), phi = A000010.

Original entry on oeis.org

3, 5, 7, 15, 11, 13, 29, 17, 19, 25, 23, 35, 53, 29, 31, 51, 103, 37, 191, 41, 43, 69, 47, 65, 101, 53, 81, 87, 59, 61, 311, 85, 67, 137, 71, 73, 149, 229, 79, 123, 83, 129, 173, 89, 181, 141, 283, 97, 197, 101, 103, 159, 107, 109, 121, 113, 229, 177, 709, 143
Offset: 1

Views

Author

Jianing Song, Feb 21 2021

Keywords

Comments

A061026(n) = A061026(2n) for odd n > 1 since phi(m) is even for m >= 3. In this sequence the redundant values are omitted.
We have the obvious inequality A070846(n) >= A307437(n) >= a(n). For odd p = prime(k), A307437(p) = a(p), and if A341861(k) > 0 we have A070846(p) = a(p).
The smallest n such that A070846(n) > A307437(n) > a(n) is n = 40, where A070846(40) = 241, A307437(40) = 187 and a(40) = 123.

Examples

			a(12) = 35 since phi(35) = 24 is divisible by 2*12, and there is no m < 12 such that phi(m) is divisible by 2*12.
a(16) = 51 since phi(51) = 32 is divisible by 2*16, and there is no m < 16 such that phi(m) is divisible by 2*16.
		

Crossrefs

Programs

  • PARI
    a(n) = for(m=1, (2*n)^2, if(eulerphi(m)%(2*n)==0, return(m)))
    
  • Python
    from sympy import totient as phi
    def a(n):
      k = 1
      while phi(k)%(2*n) != 0: k += 1
      return k
    print([a(n) for n in range(1, 61)]) # Michael S. Branicky, Feb 21 2021
Showing 1-8 of 8 results.