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.

A378371 Distance between n and the least non prime power >= n, allowing 1.

This page as a plain text file.
%I A378371 #8 Nov 30 2024 23:44:46
%S A378371 0,4,3,2,1,0,3,2,1,0,1,0,1,0,0,2,1,0,1,0,0,0,1,0,1,0,1,0,1,0,2,1,0,0,
%T A378371 0,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,1,0,0,1,0,
%U A378371 0,0,1,0,1,0,0,0,0,0,1,0,1,0,1,0,0,0,0
%N A378371 Distance between n and the least non prime power >= n, allowing 1.
%C A378371 Non prime powers allowing 1 (A361102) are numbers that are not a prime power (A246655), namely 1, 6, 10, 12, 14, 15, 18, 20, 21, 22, 24, ...
%F A378371 a(n) = A378372(n) - n.
%e A378371 The least non prime power >= 4 is 6, so a(4) = 2.
%t A378371 Table[NestWhile[#+1&,n,PrimePowerQ[#]&]-n,{n,100}]
%Y A378371 Sequences obtained by adding n to each term are placed in parentheses below.
%Y A378371 For prime we have A007920 (A151800), strict A013632.
%Y A378371 For composite we have A010051 (A113646 except initial terms).
%Y A378371 For perfect power we have A074984 (A377468)
%Y A378371 For squarefree we have A081221 (A067535).
%Y A378371 For nonsquarefree we have (A120327).
%Y A378371 For non perfect power we have A378357 (A378358).
%Y A378371 The opposite version is A378366 (A378367).
%Y A378371 For prime power we have A378370, strict A377282 (A000015).
%Y A378371 This sequence is A378371 (A378372).
%Y A378371 A000040 lists the primes, differences A001223.
%Y A378371 A000961 and A246655 list the prime powers, differences A057820.
%Y A378371 A024619 and A361102 list the non prime powers, differences A375708 and A375735.
%Y A378371 Prime powers between primes: A053607, A080101, A304521, A366833, A377057.
%Y A378371 Cf. A007916, A053707, A065514, A276781 (A031218), A343249, A345531, A376596, A376597, A377051, A377054, A377289, A378457.
%K A378371 nonn
%O A378371 1,2
%A A378371 _Gus Wiseman_, Nov 28 2024