login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A264937 Positive numbers k such that (10^(k+2) - 49) / 3 is prime. 0
1, 3, 25, 37, 51, 105, 157, 351, 499, 1093, 1987, 8019, 23787, 42795 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The numbers that follow the expression in the definition have this form: (3) concatenated k times and prepended to 17.
All terms are odd numbers (if k is even then one can use a^2 - b^2 = (a+b)*(a-b) to get a factorization).
LINKS
EXAMPLE
3 appears because 33317 ('3' concatenated 3 times and prepended to '17') is prime.
MATHEMATICA
Select[Select[Range[2000], OddQ], PrimeQ[(10^(# + 2) - 49)/3] &] (* or *)
ParallelMap[If[OddQ[#] && PrimeQ[(10^(# + 2) - 49)/3], #, Nothing] &, Range[2000]]
PROG
(Magma) [n: n in [1..400]| IsPrime((10^(n+2) - 49) div 3)]; // Vincenzo Librandi, Nov 29 2015
(PARI) is(n)=ispseudoprime((10^(n+2)-49)/3) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
Sequence in context: A129599 A042899 A266702 * A354725 A051280 A145609
KEYWORD
nonn,base,hard,more
AUTHOR
Mikk Heidemaa, Nov 28 2015
EXTENSIONS
a(13)-a(14) by Mikk Heidemaa, Apr 28 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)