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 11-17 of 17 results.

A206347 Numbers n such that 10*n+1, 20*n+1, and 30*n+1 are all primes.

Original entry on oeis.org

21, 27, 33, 60, 117, 153, 222, 228, 306, 426, 480, 495, 558, 585, 615, 636, 669, 684, 762, 768, 819, 852, 894, 909, 1083, 1125, 1131, 1224, 1239, 1341, 1455, 1512, 1539, 1776, 1812, 1845, 2301, 2484, 2517, 2541, 2604, 2706, 2769, 3093, 3177
Offset: 1

Views

Author

Keywords

Comments

(10*n+1)*(20*n+1)*(30*n+1) is a Carmichael number for all n in this sequence. Why is (6m+1)*(12m+1)*(18m +1) used to generate Carmichael numbers and never the formula (10m+1)*(20m+1)*(30m+1)?

Crossrefs

Programs

  • Mathematica
    Select[Range[20000], PrimeQ[10 #+1] && PrimeQ[20 #+1] && PrimeQ[30 #+1]&]
    Select[Range[3500],AllTrue[1+{1,2,3}10#,PrimeQ]&]  (* Harvey P. Dale, May 18 2025 *)

A290810 Numbers k such that 6k-1, 12k-1 and 18k-1 are all primes.

Original entry on oeis.org

1, 4, 5, 14, 15, 29, 39, 40, 49, 70, 110, 159, 169, 204, 235, 260, 264, 315, 334, 355, 390, 425, 449, 490, 560, 565, 599, 634, 725, 729, 735, 820, 824, 889, 1019, 1029, 1349, 1379, 1419, 1510, 1580, 1590, 1694, 1719, 1765, 1925, 1930, 1950, 1985, 2044, 2150
Offset: 1

Views

Author

Amiram Eldar, Aug 11 2017

Keywords

Comments

If k is in the sequence then (6k-1)(12k-1)(18k-1) = 36k * (36k^2 - 11k + 1) - 1 is a Lucas-Carmichael number (A006972).
Analogous to A046025 as A006972 (Lucas-Carmichael numbers) is analogous to A002997 (Carmichael numbers).

Examples

			1 is in the sequence since 6*1 - 1 = 5, 12*1 - 1 = 11 and 18*1 - 1 = 17 are all primes, and 5*11*17 = 935 is a Lucas-Carmichael number.
		

Crossrefs

Programs

  • Mathematica
    seq = {}; Do[ If[ AllTrue[{6 m - 1, 12 m - 1, 18 m - 1}, PrimeQ ], AppendTo[seq, m] ], {m, 1, 10^5} ]; seq
  • PARI
    isok(n) = isprime(6*n-1) && isprime(12*n-1) && isprime(18*n-1); \\ Michel Marcus, Aug 11 2017

Formula

6*a(n) - 1 = A067256(n+1).

A290811 Numbers n such that (6n-1, 6n+1), (12n-1, 12n+1) and (18n-1, 18n+1) are 3 pairs of twin primes.

Original entry on oeis.org

1, 8925, 70070, 70385, 270725, 355040, 566650, 866635, 874335, 1091545, 1230740, 1295980, 1586095, 1594285, 1738380, 1974210, 2201325, 2427145, 2436665, 3124660, 3349990, 3599470, 3661350, 4059825, 4101790, 4486020, 4726540, 5139680, 5613370, 5898655, 6279035
Offset: 1

Views

Author

Amiram Eldar, Aug 11 2017

Keywords

Comments

If n is in the sequence then (6n+1)*(12n+1)*(18n+1) is a Carmichael number (A002997) and (6n-1)*(12n-1)*(18n-1) is a Lucas-Carmichael number (A006972).
Intersection of A046025 and A290810.
The first 10 pairs of corresponding Lucas-Carmichael and Carmichael numbers ((6n-1)*(12n-1)*(18n-1), (6n+1)*(12n+1)*(18n+1)) are:
(935, 1729)
(921329139943799, 921392227198801)
(445860973748310119, 445864862313790921)
(451901165073782759, 451905088679976961)
(25715181770344848599, 25715239817629143601)
(58001133699332691839, 58001233533626759041)
(235803065459494289399, 235803319764534509401)
(843555229160685647759, 843555823997214441961)
(866240412591524160959, 866241018045184403161)
(1685504102154302331719, 1685505045798928055521)
(2416038446298343361039, 2416039645957333860241)

Examples

			1 is in the sequence since (6*1 - 1, 6*1 + 1) = (5, 7), (12*1 - 1, 12*1 + 1) = (11, 13) and (18*1 - 1, 18*1 + 1) = (17, 19) are all pairs of twin primes.
		

Crossrefs

Programs

  • Mathematica
    seq = {}; Do[ If[ AllTrue[{6 m - 1, 6 m + 1, 12 m - 1, 12 m + 1, 18 m - 1,
        18 m + 1}, PrimeQ ], AppendTo[seq, m]], {m, 1, 10^7} ]; seq
    Select[Range[6280000],AllTrue[{6#+1,6#-1,12#+1,12#-1,18#+1,18#-1},PrimeQ]&] (* Harvey P. Dale, Jun 21 2024 *)
  • PARI
    isok(n) = isprime(6*n-1) && isprime(6*n+1) && isprime(12*n-1) && isprime(12*n+1) && isprime(18*n-1) && isprime(18*n+1); \\ Michel Marcus, Aug 11 2017

A382809 a(n) = (6*n + 1)*(12*n + 1)*(18*n + 1).

Original entry on oeis.org

1, 1729, 12025, 38665, 89425, 172081, 294409, 464185, 689185, 977185, 1335961, 1773289, 2296945, 2914705, 3634345, 4463641, 5410369, 6482305, 7687225, 9032905, 10527121, 12177649, 13992265, 15978745, 18144865, 20498401, 23047129, 25798825, 28761265, 31942225, 35349481
Offset: 0

Views

Author

Stefano Spezia, Apr 05 2025

Keywords

Comments

a(n) is a Carmichael number if all the three factors (6*n + 1), (12*n + 1), and (18*n + 1) are prime (see Chernick and Ribenboim).

References

  • Paulo Ribenboim, The Little Book of Bigger Primes, Springer-Verlag NY 2004. See p. 101.
  • James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, page 146.

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{4,-6,4,-1},{1,1729,12025,38665},31]

Formula

a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) for n > 3.
G.f.: (1 + 1725*x + 5115*x^2 + 935*x^3)/(1 - x)^4.
E.g.f.: exp(x)*(1 + 1728*x + 4284*x^2 + 1296*x^3).
a(n) = A016921(n) * A017533(n) * A161705(n).
a(n) == 1 (mod 72).

A319008 Let k = A000396(n) be the n-th perfect number, a(n) is the least number m such that k*d*m + 1 is prime for all of the proper divisors d of k so their product is a Carmichael number.

Original entry on oeis.org

1, 2136, 13494274080, 216818853118725
Offset: 1

Views

Author

Amiram Eldar, Sep 07 2018

Keywords

Comments

Chernick proved that (6m + 1)*(12m + 1)*(18m + 1) is a Carmichael number, if all the 3 factors are primes (A033502, A046025).
Lieuwens generalized it to Product_{i} (k*d(i)*m + 1), for k a perfect number.
a(1) corresponds to 6. It was found by Jack Chernick in 1939.
a(2) corresponds to 28. It was found by Dubner in 1996. Lieuwens evaluated that the least corresponding Carmichael number > 10^27.
a(3) corresponds to 496. It was found by Jim Fougeron in 2002 (Dubner found a larger value: 474382033125).
a(4) corresponds to 8128. It was found by Phil Carmody in 2002.
The corresponding Carmichael numbers are 1729, 599966117492747584686619009, 1.631... * 10^126, 4.559... * 10^260, ...

Examples

			28 = 1 + 2 + 4 + 7 + 14 is the second perfect number. 2136 is the least number m such that 28*1*333 + 1 = 59809, 28*2*2136 + 1 = 119617, 28*4*2136 + 1 = 239233, 28*7*2136 + 1 =  418657 and 28*14*2136 + 1 = 837313 are all primes, therefore 59809*119617*239233*418657*837313 = 599966117492747584686619009 is a Carmichael number.
		

References

  • Harold Davenport, The Higher Arithmetic, Cambridge University Press, 7th ed., 1999, exercise 8.4.
  • Harvey Dubner, Carmichael numbers and Egyptian fractions, Mathematica japonicae, Vol. 43, No. 2 (1996), pp. 411-419.

Crossrefs

Programs

  • Mathematica
    ms = {2, 3, 5, 7, 13}; ns = Length[ms]; M[p_] := 2^(p - 1)*(2^p - 1); L[m_] := Module[{}, d = Most[Divisors[m]]*m; aQ[n_] := AllTrue[d*n + 1, PrimeQ]; n=1; While[!aQ[n], n++];n]; s={}; Do[m = M[ms[[k]]]; b = L[m]; AppendTo[s, b], {k, 1, ns}]; s

A379656 Carmichael numbers that are the sum of 2 positive cubes.

Original entry on oeis.org

1729, 15841, 46657, 126217, 188461, 1082809, 1773289, 2628073, 3146221, 5049001, 6868261, 14469841, 19683001, 31146661, 40917241, 78091201, 92625121, 144218341, 252141121, 1836304561, 2616662881, 3035837161, 4354716961, 4828075561, 10779325921, 13200275881, 14235803713
Offset: 1

Views

Author

Amiram Eldar, Dec 29 2024

Keywords

Comments

Below 10^22 there are only 2 Carmichael numbers that are the sum of two positive cubes in two or more different ways (i.e., in A001235): 1729 = 1^3 + 12^3 = 9^3 + 10^3 and 23226658794001 = 9001^3 + 28230^3 = 19108^3 + 25329^3.
Chernick's Carmichael numbers (A033502) are Carmichael numbers of the form (6*k+1)*(12*k+1)*(18*k+1), where 6*k+1, 12*k+1 and 18*k+1 are all primes (k is a term of A046025). There are no Chernick's Carmichael numbers other than 1729 that are the sum of two positive cubes in two or more different ways (Lagarias, 2018). In the solution to Lagarias's problem it is noted that John P. Robertson showed that if there are Chernick's Carmichael numbers other than 1729 (corresponding to k = 1) that are the sum of two positive cubes (i.e., terms of this sequence), then they have k > 10^5000.

Crossrefs

Intersection of A002997 and A003325.
A265628 is a subsequence.

Programs

  • Mathematica
    carmQ[n_] := CompositeQ[n] && Divisible[n-1, CarmichaelLambda[n]]; Select[Range[200000], carmQ[#] && Length[PowersRepresentations[#, 2, 3]] > 0 &]
  • PARI
    isA003325(n) = #select(v->min(v[1], v[2])>0, thue(thueinit('z^3+1);, n)) > 0; \\ Charles R Greathouse IV at A003325
    is(n) = (n > 1) && !isprime(n) && !((n-1) % lcm(znstar(n)[2])) && isA003325(n);

A319011 Let k = A064771(n) be the n-th pseudoperfect number such that {d(i)} is a unique subset of its proper divisors that sums to k, a(n) is the least number m such that k*d(i)*m + 1 is prime for all d(i) in this subset so their product is a Carmichael number.

Original entry on oeis.org

1, 333, 2136, 14, 72765, 49, 9765, 5, 154, 490, 276, 55, 86, 104, 228195, 5, 25597845, 264, 220, 181, 24403740, 70, 226, 234, 199250835, 215, 358293, 13494274080, 49, 70, 14753835, 685, 35, 154, 60, 7307904366, 1, 570, 21792528, 154, 216, 145, 770, 228, 236
Offset: 1

Views

Author

Amiram Eldar, Sep 07 2018

Keywords

Comments

Product_{i} (k*d(i)*m + 1) is a Carmichael number.
Chernick proved that (6m + 1)*(12m + 1)*(18m + 1) is a Carmichael number, if all the 3 factors are prime (A033502, A046025).
Lieuwens generalized it to Product_{i} (k*d(i)*m + 1), for k a perfect number (A000396), e.g., A067199 for k = 28.
Rotkiewicz generalized it to any number k with a subset of its proper divisors that sums to k.
The corresponding generated Carmichael numbers are 1729, 393575432565765601, 599966117492747584686619009, 17167430884969, 11744090279809908081796578516491199598397832961, 3680409480386689, 617027029751094776871101828064081267143041, 7622722964881, 700705956080852569, 90694625332467786841, 24182595473200959889, 553229304821570521, 3915654940974324169, 9215447790472998049, 4890416189580986381506017143209122707839833885365268481, 1746281192537521, ...
Supersequence of A319008.

Examples

			20 = 1 + 4 + 5 + 10 is the sum of a single subset of the proper divisors of 20. 333 is the least number such that 20*1*333 + 1 = 6661, 20*4*333 + 1 = 26641, 20*5*333 + 1 = 33301, and 20*10*333 + 1 = 66601 are all primes, therefore 6661*26641*33301*66601 = 393575432565765601 is a Carmichael number.
		

Crossrefs

Programs

  • Mathematica
    okQ[n_] := Module[{d = Most[Divisors[n]]}, SeriesCoefficient[Series[Product[1 + x^i, {i, d}], {x, 0, n}], n] == 1]; s = Select[Range[300], okQ]; divSubset[n_] := Module[{d = Most[Divisors[n]]}, divSets = Subsets[d]; ns = Length[divSets];
      Do[divs = divSets[[k]]; If[Total[divs] == n, Break[]], {k, 1, ns}]; divs]; leastMultiplier[n_] := Module[{divs = divSubset[n]}, m = 1;
      While[! AllTrue[n*m*divs + 1, PrimeQ], m++]; m]; seq = {}; Do[s1 = s[[k]]; m = leastMultiplier[s1]; AppendTo[seq, m], {k, 1, Length[s]}]; seq (* after Harvey P. Dale at A064771 *)
Previous Showing 11-17 of 17 results.