Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A113540
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A113540 a(n) is the minimal k such that 5^n +/- k are primes. +0
1
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; listen)
OFFSET

1,1

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

Adjacent sequences: A113537 A113538 A113539 this_sequence A113541 A113542 A113543

Sequence in context: A054579 A014965 A074259 this_sequence A111658 A105692 A107647

KEYWORD

nonn

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com), Jan 13 2006

EXTENSIONS

Corrected and extended by Robert G. Wilson v (rgwv(at)rgwv.com), Jan 18 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified October 13 20:18 EDT 2008. Contains 145016 sequences.


AT&T Labs Research