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.

A378617 First differences of A378249 (next perfect power after prime(n)).

This page as a plain text file.
%I A378617 #7 Dec 09 2024 11:02:33
%S A378617 0,4,0,8,0,9,0,0,7,0,17,0,0,0,15,0,0,17,0,0,0,19,0,0,21,0,0,0,0,7,16,
%T A378617 0,0,25,0,0,0,0,27,0,0,0,0,20,0,0,9,18,0,0,0,0,13,33,0,0,0,0,0,0,35,0,
%U A378617 0,0,0,19,0,18,0,0,0,39,0,0,0,0,0,41,0,0,0
%N A378617 First differences of A378249 (next perfect power after prime(n)).
%C A378617 This is the next perfect power after prime(n+1), minus the next perfect power after prime(n).
%C A378617 Perfect powers (A001597) are 1 and numbers with a proper integer root, complement A007916.
%t A378617 perpowQ[n_]:=n==1||GCD@@FactorInteger[n][[All,2]]>1;
%t A378617 Table[NestWhile[#+1&,Prime[n],Not@*perpowQ],{n,100}]//Differences
%Y A378617 Positions of positives are A377283.
%Y A378617 Positions of zeros are A377436.
%Y A378617 The restriction to primes has first differences A377468.
%Y A378617 A version for nonsquarefree numbers is A377784, differences of A377783.
%Y A378617 The opposite is differences of A378035 (restriction of A081676).
%Y A378617 First differences of A378249, run-lengths A378251.
%Y A378617 Without zeros we have differences of A378250.
%Y A378617 A000040 lists the primes, differences A001223.
%Y A378617 A001597 lists the perfect powers, differences A053289.
%Y A378617 A007916 lists the non perfect powers, differences A375706.
%Y A378617 A069623 counts perfect powers <= n.
%Y A378617 A076411 counts perfect powers < n.
%Y A378617 A377432 counts perfect powers between primes.
%Y A378617 A378356 - 1 gives next prime after perfect powers, union A378365 - 1.
%Y A378617 Cf. A000015, A007918, A023055, A045542, A052410, A065514, A076412, A188951, A216765, A377431, A377434.
%K A378617 nonn
%O A378617 1,2
%A A378617 _Gus Wiseman_, Dec 09 2024