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.

Previous Showing 21-30 of 44 results. Next

A066651 Primes of the form 2*s + 1, where s is a squarefree number (A005117).

Original entry on oeis.org

3, 5, 7, 11, 13, 23, 29, 31, 43, 47, 53, 59, 61, 67, 71, 79, 83, 103, 107, 131, 139, 149, 157, 167, 173, 179, 191, 211, 223, 227, 229, 239, 263, 269, 277, 283, 293, 311, 317, 331, 347, 349, 359, 367, 373, 383, 389, 419, 421, 431
Offset: 1

Views

Author

Reinhard Zumkeller, Jan 10 2002

Keywords

Comments

For these odd primes delta(p) = A055034(n) = (p-1)/2 is squarefree, and therefore the (Abelian) multiplicative group Modd p (see a comment on A203571 for Modd n, not to be confused with mod n) is guaranteed to be cyclic. This is because the number of Abelian groups of order n (A000688) is 1 precisely for the squarefree numbers A005117. See also A210845. One can in fact prove that the multiplicative group Modd p is cyclic for all primes (the case p=2 is trivial). - Wolfdieter Lang, Sep 24 2012

Examples

			a(13) = A000040(18) = 61 = 2*30+1 = 2*A005117(19)+1.
		

Crossrefs

Programs

  • Mathematica
    Select[2 * Select[Range[200], SquareFreeQ] + 1, PrimeQ] (* Amiram Eldar, Feb 22 2021 *)
  • PARI
    isok(p) = isprime(p) && (p>2) && issquarefree((p-1)/2); \\ Michel Marcus, Feb 22 2021

A208296 Smallest positive nontrivial odd solution of the congruence x^2 == 1 (mod A001748(n+2)), n >= 1.

Original entry on oeis.org

11, 13, 23, 25, 35, 37, 47, 59, 61, 73, 83, 85, 95, 107, 119, 121, 133, 143, 145, 157, 167, 179, 193, 203, 205, 215, 217, 227, 253, 263, 275, 277, 299, 301, 313, 325, 335, 347, 359, 361, 383, 385, 395, 397, 421, 445, 455, 457, 467, 479, 481, 503, 515
Offset: 1

Views

Author

Wolfdieter Lang, Mar 14 2012

Keywords

Comments

The trivial solutions of the congruence x^2 == 1 (mod 3*prime(n+2)), n>=1, with the primes prime(n+2) = A000040(n+2) have positive representatives 1 and 3*prime(n+2)-1. There are all-together four incongruent solutions due to a general theorem (see, e.g., the Hardy-Wright reference, Theorem 122, p. 96, and also A060594) and the fact that the number of incongruent solutions of this congruence with odd prime modulus p is two, namely with positive representative p and p-1 (see, e.g., Hardy-Wright, Theorem 109, p. 85). a(n) is the smallest positive odd representative >1 which solves this congruence. The other nontrivial even representative solving this congruence is 3*prime(n+2) - a(n), i.e. 4, 8, 10, 14, 16, 20, ... See 2*A207336.
a(n) solves also the congruence x^2 == 1 (Modd A001748(n+2)), n>=1. For Modd n (not to be confused with mod n) see a comment on A203571. This follows from floor(a(n)^2/3*prime(n+2)) being even, in fact it is 8*A024699(n) (see a comment there), hence a(n)^2 (Modd 3*prime(n+2)) = a(n)^2 (mod 3*prime(n+2)) = 1. For those multiplicative groups Modd 3*p with p an odd prime which are cyclic (this is not possible in the mod case, see A033949), a(n) is the representative of the only other nontrivial solution of this congruence. The representative of the trivial solution is 1 (-1 belongs to the same Modd class). (The conjecture stated here earlier is wrong, that is, the multiplicative group Modd (91=7*13) is non-cyclic. It may still be true for 3*p. - Wolfdieter Lang, Mar 15 2012)

Examples

			a(3)=23 because prime(5)=11=A007528(2), hence K(3)=11 and sqrt(8*T(11)+1)=sqrt(8*66+1)= 23. 23^2 = 529 == 1 (Modd 33), because floor(529/33)=16=8*A024699(3) is even, and 529 == 1 (mod 33).
a(4)=25 because prime(6)=13=A002476(2), hence K(4)=12 and sqrt(8*T(12)+1)=sqrt(8*78+1)=25. 25^2 = 625 == 1 (Modd 39), because floor(625/39)=16=8*A024699(4) is even, and 625 == 1 (mod 39).
		

References

  • H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers. 5th ed., Clarendon Press, Oxford, 2003.

Crossrefs

Programs

  • Mathematica
    Table[SelectFirst[Solve[x^2==1 && x !=1,x, Modulus->3*Prime[n+2]][[All,1,2]],OddQ], {n, 53}] (* Jon Maiga, Sep 28 2019 *)

Formula

a(n) = sqrt(8*T(K(n))+1), with the triangular numbers T = A000217, and K(n) = prime(n+2)-1 if the prime prime(n+2) is of the form 6*k+1, i.e., from A002476, and K(n) = prime(n+2) if prime(n+2) is of the form 6*k-1, i.e. from A007528.
a(n)^2 == 1 (mod A001748(n+2)), n >= 1.
a(n)^2 == 1 (Modd A001748(n+2)), n >= 1.

A208292 Primes of the form (n^2+1)/26.

Original entry on oeis.org

17, 37, 457, 601, 701, 877, 997, 2017, 3037, 3257, 4957, 5237, 5701, 10601, 11257, 11677, 14737, 15217, 16001, 17317, 17837, 21577, 22157, 24677, 29717, 34057, 39157, 39937, 41201, 50777, 52201, 53101, 75277, 78101, 79201, 89917, 91097, 93001, 94201, 96137
Offset: 1

Views

Author

Wolfdieter Lang, Feb 27 2012

Keywords

Comments

Equivalently, primes of the form (K^2 + (K+1)^2)/13. The
connection to the primes of the form (m^2+1)/26 is given by m=2*K+1 (m is necessarily odd).
The corresponding m=m(n) values are given in A208293(n).
Equivalently, primes of the form (4*T(K)+1)/13, with the
corresponding triangular numbers T(K):=A000217(K), for
K=K(n)=(m(n)-1)/2, given in A208294(n).
For n>=2 the smallest positive representative of the class of
nontrivial solutions of the congruence x^2==1 (Modd a(n)) is
x=m(n). The trivial solution is the class with representative x=1, which also includes -1. For the prime
a(1)=17 the nontrivial solution is 13 (see A002733(2)). Unique nontrivial smallest positive representatives exist for the solutions for any prime of the form 4*k+1, given in A002144. Here the subset with k=k(n)=(a(n)-1)/4 appears, namely 4,9,114,150,175,219,.... For Modd n see a comment on A203571.
These primes with corresponding m values are such that floor(m(n)^2/p(n)) = 5^2, n>=1.

Examples

			a(3)=457, m(3)=A208293(3)=109. T(K(3))=A000217((109-1)/2)=
  A000217(54)=A208294(3)=1485.
		

Crossrefs

Cf. A207337, A207339 (case floor(m^2/p)=3^2); A129307, A027862, A002731 (case floor(m^2/p)=1^2).

Programs

  • Mathematica
    Select[(Range[2000]^2 + 1)/26, PrimeQ] (* T. D. Noe, Feb 28 2012 *)

Formula

a(n) is the n-th member of the increasingly ordered list of primes of the form (m^2+1)/10, where m=m(n) is necessarily an odd integer, the positive one is A208293(n).

A208293 Numbers n such that (n^2+1)/26 is prime.

Original entry on oeis.org

21, 31, 109, 125, 135, 151, 161, 229, 281, 291, 359, 369, 385, 525, 541, 551, 619, 629, 645, 671, 681, 749, 759, 801, 879, 941, 1009, 1019, 1035, 1149, 1165, 1175, 1399, 1425, 1435, 1529, 1539, 1555, 1565, 1581, 1669, 1685, 1695, 1799, 1851, 1919, 1945, 1971
Offset: 1

Views

Author

Wolfdieter Lang, Feb 27 2012

Keywords

Comments

The corresponding primes (n^2+1)/26 are given in A208292(n).
a(n) is the smallest positive representative of the class of
nontrivial solutions of the congruence x^2==1 (Modd A208292(n)), if n>=2. The trivial solution is the class with representative x=1, which also includes -1. For Modd n see a comment on A203571. For n=1: a(1) = 21 == 13 (Modd 17), and 13 is the smallest positive solution >1.
The unique class of nontrivial solutions of the congruence x^2==1 (Modd p), with p an odd prime, exists for any p of the form 4*k+1, given in A002144. Here a subset of these primes is covered, the ones for k=k(n)=(a(n)^2-25)/(4*26). These values are 4, 9, 114, 150, 175, 219, ...

Examples

			a(3)=109 because (109^2+1)/26 = 457 is prime.
  109 = sqrt(26*457-1) = sqrt(8*1485+1).
		

Crossrefs

Programs

Formula

a(n) = sqrt(26*A208292(n)-1) = sqrt(8*A208294(n)+1), n>=1.

A203572 Period length 12: 0, 1, 2, 3, 4, 5, 0, 5, 4, 3, 2, 1 repeated.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 0, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 0, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 0, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 0, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 0, 5, 4, 3, 2, 1, 0
Offset: 0

Views

Author

Wolfdieter Lang, Jan 12 2012

Keywords

Comments

This sequence can be continued periodically for negative values of n.
This is the sixth sequence of a k-family of sequences P_k, k>=1, which starts with A000007(n+1), n>=0, (the 0-sequence), A000035, A193680, A193682, A203571 for k=1,...,5, respectively.
See a comment on A203571 for the general case of the P_k sequences. For a(n)=P_6(n) the nonnegative members of the equivalence classes [0], [1],...,[5], defined by p==q iff P_6(p)=P_6(q), are found in the array A092260 if there class [6], starting with 6, is replaced by 0,6,12,..., which is class [0] (nonnegative part).

Examples

			a(14) = 14(mod 6) = 2 because 14\6 = floor(14/6)=2 is even; the sign is +1.
a(8) = (6-8)(mod 6) = 4 because 8\6 = floor(8/6)=1 is odd; the sign is -1.
		

Crossrefs

Cf. A203571.

Programs

  • Mathematica
    PadRight[{},120,{0,1,2,3,4,5,0,5,4,3,2,1}] (* Harvey P. Dale, Nov 28 2015 *)

Formula

a(n) = n(mod 6) if (-1)^floor(n/6)=+1 else (6-n)(mod 6), n>=0. (-1)^floor(n/6) is the sign corresponding to the parity of the quotient floor(n/6). This quotient is sometimes denoted by n\6.
O.g.f.: x*(1+2*x+3*x^2+4*x^3+5*x^4+5*x^6+4*x^7+3*x^8+2*x^9+ x^10)/(1-x^12).

A206543 Period 10: repeat 1, 3, 5, 7, 9, 9, 7, 5, 3, 1.

Original entry on oeis.org

1, 3, 5, 7, 9, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 9, 7, 5, 3, 1, 1
Offset: 1

Views

Author

Wolfdieter Lang, Feb 09 2012

Keywords

Comments

For general Modd n (not to be confused with mod n) see a comment on A203571. The present sequence gives the residues Modd 11 for the positive odd numbers not divisible by 11, which are given in A204454.
The underlying period length 22 sequence with offset 0 is P_11, also called Modd11, periodic([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]).

Examples

			Residue Modd 11 of the positive odd numbers not divisible by 11:
A204454: 1, 3, 5, 7, 9, 13, 15, 17, 19, 21, 23, 25, 27, ...
Modd 11: 1, 3, 5, 7, 9,  9,  7,  5,  3,  1,  1,  3,  5, ...
		

Crossrefs

Cf. A000012 (Modd 3), A084101 (Modd 5), A110551 (Modd 7).

Programs

  • Mathematica
    PadRight[{},120,{1,3,5,7,9,9,7,5,3,1}] (* or *) LinearRecurrence[{2,-2,2,-2,1},{1,3,5,7,9},120] (* Harvey P. Dale, Oct 15 2017 *)
  • PARI
    a(n)=[1, 3, 5, 7, 9, 9, 7, 5, 3, 1][n%10+1] \\ Charles R Greathouse IV, Jul 17 2016

Formula

a(n) = A204454(n) (Modd 11) := Modd11(A204454(n)), with the periodic sequence Modd11 with period length 22 given in the comment section.
O.g.f.: x*(1+x^9+3*x*(1+x^7)+5*x^2*(1+x^5)+7*x^3*(1+x^3)+9*x^4*(1+x))/(1-x^10) = x*(1+x)*(1-x^5)/((1+x^5)*(1-x)^2).

A206546 Period 8: repeat [1, 7, 11, 13, 13, 11, 7, 1].

Original entry on oeis.org

1, 7, 11, 13, 13, 11, 7, 1, 1, 7, 11, 13, 13, 11, 7, 1, 1, 7, 11, 13, 13, 11, 7, 1, 1, 7, 11, 13, 13, 11, 7, 1, 1, 7, 11, 13, 13, 11, 7, 1, 1, 7, 11, 13, 13, 11, 7, 1, 1, 7, 11, 13, 13, 11, 7, 1, 1, 7, 11, 13, 13, 11, 7, 1, 1, 7, 11, 13, 13, 11, 7, 1, 1, 7, 11, 13, 13, 11, 7, 1, 1, 7, 11, 13, 13, 11, 7, 1, 1, 7, 11, 13, 13, 11, 7, 1
Offset: 1

Views

Author

Wolfdieter Lang, Feb 10 2012

Keywords

Comments

For general Modd n (not to be confused with mod n) see a comment on A203571. The present sequence gives the residues Modd 15 of the positive odd numbers relatively prime to 15 (the positive odd numbers from all reduced residue classes mod 15), shown in A007775. The underlying periodic sequence with period length 30 is [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,0,14,13,12,11,10,9,8,7,6,5,4,3,2,1], called, with offset 0, P_15 or Modd15.

Examples

			Residues Modd 15 of the positive odd numbers relatively prime to 15:
A007775: 1, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 49, ...
Modd 15: 1, 7, 11, 13, 13, 11,  7,  1,  1,  7, 11, 13, 13, 11, ...
		

Crossrefs

Cf. A206545 and further crossrefs given there.

Programs

Formula

a(n) = A007775(n) (Modd 15) := Modd15(A007775(n)), n>=1, with the periodic sequence Modd15 (period length 30) given in the comment section.
O.g.f: x*(1+x^7+7*x*(1+x^5)+11*x^2*(1+x^3)+13*x^3*(1+x))/(1-x^8) = x*(1+x)*(1+6*x+5*x^2+8*x^3+5*x^4+6*x^5+x^6)/(1-x^8).
a(n) = -k^2 + 7k + 1 where k = (n-1) mod 8. - David A. Corneth, Aug 13 2017

A207332 Double factorials (prime(n)-2)!!.

Original entry on oeis.org

1, 1, 3, 15, 945, 10395, 2027025, 34459425, 13749310575, 213458046676875, 6190283353629375, 221643095476699771875, 319830986772877770815625, 13113070457687988603440625, 25373791335626257947657609375, 2980227913743310874726229193921875
Offset: 1

Views

Author

Wolfdieter Lang, Feb 18 2012

Keywords

Comments

For the double factorials (2*n-1)!!, for n >= 1, see A001147, and n!! = A006882(n).
For a(n) Modd prime(n) see a comment on A209389 stating the analog of Wilson's theorem for Modd prime(n). For Modd n, (not to be confused with mod n) see a comment on A203571. - Wolfdieter Lang, Mar 28 2012
a(n)^2 == A212159(n) (mod prime(n)), n >= 2. See also the W. HolsztyƄski link given there. - Wolfdieter Lang, May 07 2012

Examples

			For n = 5, prime(5) = A000040(5) = 11, 9!!= 1*3*5*7*9 = A040976(5)!! = A006882(9) = A001147(5) = 945.
a(5)^2 = 893025 == +1 (mod 11). - _Wolfdieter Lang_, May 07 2012
		

Crossrefs

Cf. A000040, A001147, A006882, A040976 (prime(n)-2).

Programs

  • Mathematica
    Table[(Prime[n] - 2)!!, {n, 1, 16}] (* Amiram Eldar, Sep 14 2023 *)
  • PARI
    a(n) = if (n==1, 1, prod(k=0, (prime(n)-3)/2, 2*k+1)); \\ Michel Marcus, Sep 12 2023

Formula

a(1) = 0!! := 1 and a(n) = Product_{k=0..(prime(n)-3)/2} (2*k+1), n >= 2.
a(n) = A006882(prime(n)-2). - Michel Marcus, Sep 12 2023

A209388 Product of positive odd integers smaller than n and relatively prime to n.

Original entry on oeis.org

1, 1, 1, 3, 3, 5, 15, 105, 35, 189, 945, 385, 10395, 19305, 1001, 2027025, 2027025, 85085, 34459425, 8729721, 230945, 1249937325, 13749310575, 37182145, 4216455243, 608142583125, 929553625, 1452095555625, 213458046676875, 215656441, 6190283353629375
Offset: 1

Views

Author

Wolfdieter Lang, Mar 10 2012

Keywords

Comments

This is the product over the smallest positive representatives of the odd reduced residue class Modd n. For Modd n (not to be confused with mod n) see a comment on A203571. This reduced residue class has delta(n)=A055034(n) members.
The Moddn values of this sequence are given in A209339.

Examples

			a(4) = 1*3 = 3.
a(5) = 1*3 = 3.
a(15) = 1*7*11*13 = 1001.
		

Crossrefs

Cf. A001783 (mod n analog), A207332, A209339.

Programs

  • Mathematica
    Table[Times @@ Select[Range[1, n, 2], GCD[n, #] == 1 &], {n, 40}] (* T. D. Noe, Mar 12 2012 *)
  • PARI
    a(n) = prod(k=1, n, if (k % 2, k, 1)); \\ Michel Marcus, Mar 12 2022

Formula

a(n) = product(2*k+1, k from {0,1,...,floor((n-2)/2)} and gcd(2*k+1,n) =1). a(1):=1 (empty product).
a(n) = product(k, k from {1,...,n-1} and gcd(k,2*n) = 1). a(1):=1 (empty product).
a(prime(n)) = (prime(n)-2)!! = A207332(n), for primes prime(n)=A000040(n).

A210845 Values n for which A055034(n) is squarefree.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 9, 11, 13, 14, 18, 21, 22, 23, 25, 29, 31, 33, 43, 46, 47, 49, 53, 59, 61, 62, 67, 69, 71, 77, 79, 83, 86, 93, 94, 98, 99, 103, 107, 118, 121, 129, 131, 134, 139, 141, 142, 147, 149, 157, 158, 161, 166, 167, 169, 173, 177, 179, 191
Offset: 1

Views

Author

Wolfdieter Lang, Apr 11 2012

Keywords

Comments

A055034(n) is the degree delta(n) of the minimal polynomial of the algebraic number rho(n):=2*cos(pi/n), n>=1, whose coefficients are shown in A187360. It is also the order of multiplicative abelian group Modd n (for multiplication Modd n see a comment on A203571). This is the Galois group Gal(Q(rho(n))/Q). If the number of abelian groups of order delta(n) is 1 then this group is necessarily cyclic.
Because A000688 is 1 exactly for the squarefree numbers A005117, the set of a(n) values of the present sequence is a (proper) subset of A206551. Hence it is immediately clear that the multiplicative group Modd a(n) is cyclic, but there are other cyclic Modd n groups, e.g., for n = 8, 10, 15, 16, 17, 19, 26, 27, 32, 34, 35, 37, 38, 39, 41,...

Examples

			a(3)=3 because delta(3)=A055034(3)= 1, and 1 is a member of the squarefree numbers A005117.
a(8)=9 because A055034(9)= 3 = A005117(3).
a(10)=13 because A055034(13)= 6 = A005117(5).
		

Crossrefs

Cf. A206551.

Formula

A055034(a(n)) is squarefree, i.e. from A005117.
Previous Showing 21-30 of 44 results. Next