login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A138363 Number of prime powers p^e with e>1 and 0<prime(n)-p^e<p. 3
0, 0, 1, 0, 1, 0, 1, 0, 0, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0 (list; graph; refs; listen; history; internal format)
OFFSET

1,10

COMMENTS

a(A049084(A074267(n))) > 0;

a(31)=2, what is the next value greater than 1?.

LINKS

R. Zumkeller, Table of n, a(n) for n = 1..10000

EXAMPLE

A000040(10)=29: a(10) = #{4+5^2, 2+3^3} = 2.

MATHEMATICA

f[n_] := Block[{c = 0, j, k = 1, p = Prime@ n, q}, j = 1 + PrimePi@ Sqrt@ p; While[k < j, q = Prime@ k; If[p < q + q^Floor@ Log[q, p], c++ ]; k++ ]; c]; Array[f, 105]

CROSSREFS

Sequence in context: A053201 A028605 A070205 * A080225 A122841 A060862

Adjacent sequences:  A138360 A138361 A138362 * A138364 A138365 A138366

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Mar 16 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 10:56 EST 2012. Contains 205763 sequences.