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

A046720 Subsequence of beastly primes (A186086) that are palindromes that begin and end with 7.

Original entry on oeis.org

76667, 700666007, 700000666000007, 70000006660000007
Offset: 1

Views

Author

Keywords

Comments

Next term is 7_{0}^48_666_{0}^48_7, containing 101 digits, and is too large to include here.
The number of digits in the terms is 2*A186521(n)+3: 5, 9, 15, 17, 101, 1159, 1589, 2647, 2787, 4787, 6135, 26961 (some correspond to probable primes). - Jens Kruse Andersen, Jul 13 2014

Crossrefs

Programs

  • Mathematica
    Select[Table[(7*10^(n + 2) + 666)*10^n + 7, {n, 7}], PrimeQ] (* Arkadiusz Wesolowski, Sep 08 2011 *)
    Select[Table[With[{s=PadRight[{7},n,0]},FromDigits[Join[s,{6,6,6},Reverse[s]]]],{n,8}],PrimeQ] (* Harvey P. Dale, Aug 05 2024 *)

Formula

a(n) = (7*10^(k+2)+666)*10^k+7, where k = A186521(n). - Jens Kruse Andersen, Jul 13 2014

Extensions

Definition revised by N. J. A. Sloane, Feb 14 2011

A051003 Beastly (or hateful) numbers: numbers containing the string 666 in their decimal expansion.

Original entry on oeis.org

666, 1666, 2666, 3666, 4666, 5666, 6660, 6661, 6662, 6663, 6664, 6665, 6666, 6667, 6668, 6669, 7666, 8666, 9666, 10666, 11666, 12666, 13666, 14666, 15666, 16660, 16661, 16662, 16663, 16664, 16665, 16666, 16667, 16668, 16669, 17666, 18666
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    Select[Range[18666], ! StringFreeQ[ToString[#], "666"] &] (* Arkadiusz Wesolowski, Sep 08 2011 *)

A131645 Beastly primes (version 2): primes containing 666 as a substring.

Original entry on oeis.org

6661, 16661, 26669, 46663, 56663, 66601, 66617, 66629, 66643, 66653, 66683, 66697, 76667, 96661, 96667, 106661, 106663, 106669, 116663, 146669, 166601, 166603, 166609, 166613, 166619, 166627, 166631, 166643, 166657, 166667, 166669, 166679
Offset: 1

Views

Author

Tanya Khovanova, Sep 08 2007

Keywords

Comments

These are the primes among the beastly numbers A051003.
There are several other definitions of beastly primes (see cross-references).
Asymptotic density n/log(n), since almost all primes are of this form.

Crossrefs

Programs

  • Mathematica
    Select[Range[300000], StringFreeQ[ToString[ # ], "666"] == False && PrimeQ[ # ] &]
    Select[Prime[Range[300000]],!StringFreeQ[ToString[ # ],"666"]&] (* Zak Seidov, Jan 09 2009 *)
  • PARI
    digitsIn(x) = 1 + log(x)\log(10)
    allocatemem(932245000);
    default(primelimit, 4294965247); m=1; forprime (p=6660, 68466670, d=digitsIn(p); for (i=1, d-3, t=10^i; u=p\t; x=u-(u\1000)*1000; if (x==666, print(m, " ", p); write("b131645.txt", m, " ", p); m++; break))) \\ Harry J. Smith, Jan 11 2009

Formula

a(n) ~ n log n. - Charles R Greathouse IV, Oct 13 2015

Extensions

Definition corrected by Arkadiusz Wesolowski, Feb 12 2011
Edited by N. J. A. Sloane, Feb 12 2011

A186521 Numbers n>0 such that (7*10^(n+2)+666)*10^n+7 is prime.

Original entry on oeis.org

1, 3, 6, 7, 49, 578, 793, 1322, 1392, 2392, 3066, 13479
Offset: 1

Views

Author

Arkadiusz Wesolowski, Feb 23 2011

Keywords

Comments

Or, indices of primes in A046720. Rudolf Ondrejka calls these "beastly palindromic primes".
Some of the larger entries may only correspond to probable primes.

Crossrefs

Programs

  • Mathematica
    Select[Range[10^3], PrimeQ[(7*10^(# + 2) + 666)*10^# + 7] &] (* Arkadiusz Wesolowski, Sep 08 2011 *)

Extensions

a(12) added by Arkadiusz Wesolowski, Mar 16 2011

A186538 Numbers n>0 such that 666*10^n+7 is prime.

Original entry on oeis.org

25, 26, 28, 33, 49, 80, 81, 133, 179, 202, 222, 271, 411, 588, 682, 1039, 2403, 5802, 11544, 12484, 41047, 46396
Offset: 1

Views

Author

Arkadiusz Wesolowski, Feb 23 2011

Keywords

Comments

Some of the larger entries may only correspond to probable primes.

Crossrefs

Cf. A186086.

Programs

Extensions

a(21) from Arkadiusz Wesolowski, May 25 2011
a(22) from Arkadiusz Wesolowski, May 28 2011

A186630 Numbers n>0 such that 666*10^n+1 is prime.

Original entry on oeis.org

1, 2, 10, 12, 30, 48, 373, 580, 619, 718, 1592, 2928, 3076, 4741, 9198, 14020
Offset: 1

Views

Author

Arkadiusz Wesolowski, Feb 24 2011

Keywords

Comments

No other terms below 10^5. [Arkadiusz Wesolowski, Dec 23 2011]

Crossrefs

Cf. A186086.

Programs

Extensions

a(16) (discovered on Dec 09 1999, by Nuutti Kuosa) added by Arkadiusz Wesolowski, Mar 16 2011

A260312 Palindromic beastly primes that begin and end with digit '1'.

Original entry on oeis.org

16661, 1000000000000066600000000000001, 10000000000000000000000000000000000000000006660000000000000000000000000000000000000000001
Offset: 1

Views

Author

K. D. Bajpai, Jul 22 2015

Keywords

Comments

The next term a(4) contains 1017 digits, and is too large to include in data section.

Examples

			a(1) = 16661 is a palindromic prime that contains the beastly number '666' and begins and ends with digit 1.
a(2) = 1000000000000066600000000000001 is palindromic prime that contains the beastly number '666' and begins and ends with digit 1.
		

Crossrefs

Programs

  • Magma
    [k: n in [1..1000] | IsPrime(k) where k is ((1*10^(n + 2) + 666)*10^n + 1 )];
  • Maple
    A260312:= n-> ((1*10^(n + 2) + 666)*10^n + 1 ): select(isprime, [seq((A260312 (n), n=1..100))]);
  • Mathematica
    Select[Table[(1*10^(n + 2) + 666)*10^n + 1, {n, 1000}], PrimeQ]
    Select[Table[FromDigits[Join[{1},PadRight[{},n,0],{6,6,6},PadRight[ {},n,0],{1}]],{n,0,50}],PrimeQ] (* Harvey P. Dale, Jul 09 2017 *)
  • PARI
    for(n=1, 500, k=((1*10^(n + 2) + 666)*10^n + 1 ); if(isprime(k), print1(k, ", ")));
    
Showing 1-7 of 7 results.