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-3 of 3 results.

A057538 Birthday set of order 5: numbers congruent to +-1 modulo 2, 3, 4 and 5.

Original entry on oeis.org

1, 11, 19, 29, 31, 41, 49, 59, 61, 71, 79, 89, 91, 101, 109, 119, 121, 131, 139, 149, 151, 161, 169, 179, 181, 191, 199, 209, 211, 221, 229, 239, 241, 251, 259, 269, 271, 281, 289, 299, 301, 311, 319, 329, 331, 341, 349, 359, 361, 371, 379, 389, 391, 401, 409
Offset: 1

Views

Author

Andrew R. Feist (andrewf(AT)math.duke.edu), Sep 06 2000

Keywords

Comments

Also numbers congruent to +-1 or +-11 modulo 30 and numbers k where (k^2 - 1)/120 is an integer; all but the first two prime legs of Pythagorean triangles which also have prime hypotenuses appear within in this sequence (A048161). - Henry Bottomley, Jan 31 2002
Numbers k such that k^2 == 1 (mod 30). - Gary Detlefs, Apr 16 2012
Subsequence of primes gives A045468. - Ray Chandler, Jul 29 2019

Examples

			229 is congruent to 1 (mod 2), 1 (mod 3), 1 (mod 4) and -1 (mod 5).
x+ 11*x^2 + 19*x^3 + 29*x^4 + 31*x^5 + 41*x^6 + 49*x^7 + 59*x^8 + 61*x^9 + ...
		

Crossrefs

Programs

  • Maple
    for n from 1 to 409 do if (n^2 mod 30 =1) then print(n) fi od; # Gary Detlefs, Apr 17 2012
  • Mathematica
    a057538[n_] := Block[{f},
      f[x_] :=
       If[Mod[x, #] == 1 || Mod[x, #] == # - 1, True, False] & /@
        Range[2, 5];
    Select[Range[n], DeleteDuplicates[f[#]] == {True} &]]; a057538[409] (* Michael De Vlieger, Dec 26 2014 *)
  • PARI
    {a(n+1) = (n\4*3 + n%4)*10 + (-1)^(n\2)} /* Michael Somos, Oct 17 2006 */

Formula

A093722(n) = (a(n)^2 - 1)/120.
G.f.: x * (1 + 10*x + 8*x^2 + 10*x^3 + x^4) / ((1 - x) * (1 - x^4)). a(-1 - n) = -a(n). - Michael Somos, Jan 21 2012
4*a(n) = 30*(n+1) - 45 + 5*(-1)^n + 6*(-1)^floor((n+1)/2). - R. J. Mathar, Jul 30 2019

Extensions

Corrected by Henry Bottomley, Jan 31 2002
Offset corrected to 1 by Ray Chandler, Jul 29 2019

A057540 Birthday set of order 8: i.e., numbers congruent to +- 1 modulo 2, 3, 4, 5, 6, 7 and 8.

Original entry on oeis.org

1, 41, 71, 169, 209, 239, 281, 391, 449, 559, 601, 631, 671, 769, 799, 839, 841, 881, 911, 1009, 1049, 1079, 1121, 1231, 1289, 1399, 1441, 1471, 1511, 1609, 1639, 1679, 1681, 1721, 1751, 1849, 1889, 1919, 1961, 2071, 2129, 2239, 2281, 2311, 2351, 2449
Offset: 1

Views

Author

Andrew R. Feist (andrewf(AT)math.duke.edu), Sep 06 2000

Keywords

Examples

			2129 is on the list because it is congruent to 1 mod 2, -1 mod 3, 1 mod 4, -1 mod 5, -1 mod 6, 1 mod 7 and 1 mod 8.
		

Crossrefs

Cf. A007310, A057538, A057539 and A057541 are also birthday sets.

Programs

  • Mathematica
    bso8Q[n_]:=Module[{s1=Mod[n,Range[2,8]],s2},s2=Abs[s1-Range[2,8]];AllTrue[ Thread[{s1,s2}],MemberQ[#,1]&]]; Select[Range[2500],bso8Q] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 18 2021 *)
  • PARI
    Vec(x*(x^16 +40*x^15 +30*x^14 +98*x^13 +40*x^12 +30*x^11 +42*x^10 +110*x^9 +58*x^8 +110*x^7 +42*x^6 +30*x^5 +40*x^4 +98*x^3 +30*x^2 +40*x +1) / ((x -1)^2*(x +1)*(x^2 +1)*(x^4 +1)*(x^8 +1)) + O(x^100)) \\ Colin Barker, Mar 16 2015

Formula

G.f.: x*(x^16 +40*x^15 +30*x^14 +98*x^13 +40*x^12 +30*x^11 +42*x^10 +110*x^9 +58*x^8 +110*x^7 +42*x^6 +30*x^5 +40*x^4 +98*x^3 +30*x^2 +40*x +1) / ((x -1)^2*(x +1)*(x^2 +1)*(x^4 +1)*(x^8 +1)). - Colin Barker, Mar 16 2015

Extensions

Offset corrected to 1 by Ray Chandler, Jul 29 2019

A057541 Birthday set of order 9: i.e., numbers congruent to +- 1 modulo 2, 3, 4, 5, 6, 7, 8 and 9.

Original entry on oeis.org

1, 71, 449, 559, 631, 881, 1009, 1079, 1441, 1511, 1639, 1889, 1961, 2071, 2449, 2519, 2521, 2591, 2969, 3079, 3151, 3401, 3529, 3599, 3961, 4031, 4159, 4409, 4481, 4591, 4969, 5039, 5041, 5111, 5489, 5599, 5671, 5921, 6049, 6119, 6481, 6551, 6679
Offset: 1

Views

Author

Andrew R. Feist (andrewf(AT)math.duke.edu), Sep 06 2000

Keywords

Examples

			5599 is on the list because it is congruent to 1 mod 2, 1 mod 3, -1 mod 4, -1 mod 5, 1 mod 6, -1 mod 7, -1 mod 8 and 1 mod 9.
		

Crossrefs

Cf. A007310, A057538, A057539 and A057540 are other birthday sets.

Programs

  • Mathematica
    LinearRecurrence[{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1},{1,71,449,559,631,881,1009,1079,1441,1511,1639,1889,1961,2071,2449,2519,2521},80] (* Harvey P. Dale, Feb 20 2022 *)
  • PARI
    Vec(x*(x^16 +70*x^15 +378*x^14 +110*x^13 +72*x^12 +250*x^11 +128*x^10 +70*x^9 +362*x^8 +70*x^7 +128*x^6 +250*x^5 +72*x^4 +110*x^3 +378*x^2 +70*x +1) / ((x -1)^2*(x +1)*(x^2 +1)*(x^4 +1)*(x^8 +1)) + O(x^100)) \\ Colin Barker, Mar 16 2015

Formula

G.f.: x*(x^16 +70*x^15 +378*x^14 +110*x^13 +72*x^12 +250*x^11 +128*x^10 +70*x^9 +362*x^8 +70*x^7 +128*x^6 +250*x^5 +72*x^4 +110*x^3 +378*x^2 +70*x +1) / ((x -1)^2*(x +1)*(x^2 +1)*(x^4 +1)*(x^8 +1)). - Colin Barker, Mar 16 2015

Extensions

Offset corrected to 1 by Ray Chandler, Jul 29 2019
Showing 1-3 of 3 results.