The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A365670 Number of perfect powers k which are not prime powers, and 1 < k < 10^n. 1

%I #23 Sep 17 2023 06:01:36

%S 0,1,14,72,257,873,2838,9085,28979,92145,292832,930124,2953569,

%T 9376798,29760901,94434276,299569798,950072891,3012393832,9549260877,

%U 30264906899,95902117819,303839485659,962486295193,3048497625289,9654373954803,30571355398031,96797106918709

%N Number of perfect powers k which are not prime powers, and 1 < k < 10^n.

%C k is a perfect power (A001597) <=> there exist integers m and b, b > 1, m >= 1, and k = m^b.

%C k is a prime power (A246655) <=> there exist integers p and b, b >= 1, p is a prime, and k = p^b.

%H Plot2, <a href="https://oeis.org/plot2a?name1=A267574&amp;name2=A089579&amp;tform1=untransformed&amp;tform2=untransformed&amp;shift=0&amp;radiop1=ratio&amp;drawlines=true">A267574(n)/A089579(n)</a>.

%F a(n) = A089579(n) - A267574(n).

%F a(n) = card({k: 1 < k < 10^n and k in A131605}).

%F If k = m^b is a term counted by this sequence then base(k) = m is a term of A024619.

%e There are 14 perfect powers less than 1000 which are not prime powers:

%e 6^2, 10^2, 12^2, 14^2, 6^3, 15^2, 18^2, 20^2, 21^2, 22^2, 24^2, 26^2, 28^2, 30^2.

%o (SageMath)

%o def A365670(n):

%o gen = (p for p in srange(2, 10^n)

%o if p.is_perfect_power() and not p.is_prime_power())

%o return sum(1 for _ in gen)

%o print([A365670(n) for n in range(1, 7)])

%Y Cf. A089579, A267574, A131605, A001597, A246655, A024619.

%K nonn

%O 1,3

%A _Peter Luschny_, Sep 16 2023

%E Data based on A089579 and A267574.

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 May 24 12:09 EDT 2024. Contains 372773 sequences. (Running on oeis4.)