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!)
A113540 a(n) is the minimal k such that 5^n +/- k are primes. 0
2, 6, 12, 6, 42, 18, 66, 126, 144, 762, 78, 318, 1026, 84, 264, 354, 288, 102, 1242, 162, 168, 318, 2058, 234, 2352, 252, 2532, 42, 342, 102, 2034, 2946, 222, 606, 882, 348, 3366, 2472, 264, 2988, 2466, 336, 666, 762, 222, 438, 3432, 6834, 3816, 588, 1818 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(1)=2 because 5^1 +/- 2 are primes; a(2)=6 because 5^2 +/- 6 are primes.
MATHEMATICA
f[n_] := Block[{k = 2}, While[ ! PrimeQ[5^n + k] || ! PrimeQ[5^n - k], k += 2]; k]; Array[f, 51] (* Robert G. Wilson v *)
CROSSREFS
Sequence in context: A014965 A074259 A338376 * A111658 A341664 A105692
KEYWORD
nonn
AUTHOR
Zak Seidov, Jan 13 2006
EXTENSIONS
Corrected and extended by Robert G. Wilson v, Jan 18 2006
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.)