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!)
A145338 a(n) is the smallest prime p where |d(p-1) - d(p+1)| = n. (d(m) = the number of divisors of m.) 1
7, 2, 11, 197, 23, 37, 47, 401, 59, 1601, 181, 16901, 167, 3137, 179, 577, 419, 1297, 1051, 12101, 359, 739601, 1009, 4357, 1511, 50177, 719, 171610001, 839, 67601, 10657, 9096257, 1439, 240101, 3697, 145540097, 3023, 15877, 2879, 3587237, 2521 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
a(2n-1) = k^2 + 1, for all positive integers n, where k is some integer; k is even for n >= 2.
LINKS
EXAMPLE
a(2)=11 because abs(d(10) - d(12)) = 2 while abs(d(p-1) - d(p+1)) < 2 for p=2,3,5 and 7. - Emeric Deutsch, Oct 11 2008
MAPLE
with(numtheory); a:=proc(n) local j: for j while abs(tau(ithprime(j)-1)-tau(ithprime(j)+1)) <> n do end do: ithprime(j) end proc: seq(a(n), n=0..26); # Emeric Deutsch, Oct 11 2008
CROSSREFS
Cf. A145337.
Sequence in context: A147677 A090243 A216150 * A104586 A323995 A040048
KEYWORD
nonn
AUTHOR
Leroy Quet, Oct 08 2008
EXTENSIONS
More terms from R. J. Mathar and Emeric Deutsch, Oct 10 2008
Extended from a(27) onwards by Ray Chandler, Oct 12 2008
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 24 17:51 EDT 2024. Contains 371962 sequences. (Running on oeis4.)