cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A138363 Number of prime powers p^e with e>1 and 0

This page as a plain text file.
%I A138363 #7 Mar 30 2012 18:50:59
%S A138363 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,
%T A138363 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,
%U A138363 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
%N A138363 Number of prime powers p^e with e>1 and 0<prime(n)-p^e<p.
%C A138363 a(A049084(A074267(n))) > 0;
%C A138363 a(31)=2, what is the next value greater than 1?.
%H A138363 R. Zumkeller, <a href="/A138363/b138363.txt">Table of n, a(n) for n = 1..10000</a>
%e A138363 A000040(10)=29: a(10) = #{4+5^2, 2+3^3} = 2.
%t A138363  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]
%K A138363 nonn
%O A138363 1,10
%A A138363 _Reinhard Zumkeller_, Mar 16 2008