A376340
Sorted positions of first appearances in A057820, the sequence of first differences of prime-powers.
Original entry on oeis.org
1, 4, 9, 12, 18, 24, 34, 47, 60, 79, 117, 178, 198, 206, 215, 244, 311, 402, 465, 614, 782, 1078, 1109, 1234, 1890, 1939, 1961, 2256, 2290, 3149, 3377, 3460, 3502, 3722, 3871, 4604, 4694, 6634, 8073, 8131, 8793, 12370, 12661, 14482, 14990, 15912, 17140, 19166
Offset: 1
The terms together with their prime indices begin:
1: {}
4: {1,1}
9: {2,2}
12: {1,1,2}
18: {1,2,2}
24: {1,1,1,2}
34: {1,7}
47: {15}
60: {1,1,2,3}
79: {22}
117: {2,2,6}
178: {1,24}
198: {1,2,2,5}
206: {1,27}
215: {3,14}
244: {1,1,18}
For compression instead of sorted firsts we have
A376308.
For run-lengths instead of sorted firsts we have
A376309.
For run-sums instead of sorted firsts we have
A376310.
The version for squarefree numbers is the unsorted version of
A376311.
A116861 counts partitions by compressed sum, by compressed length
A116608.
Cf.
A001597,
A006549,
A007916,
A025475,
A037201,
A053289,
A078147,
A110969,
A120430,
A174965,
A373948,
A375706.
-
q=Differences[Select[Range[100],PrimePowerQ]];
Select[Range[Length[q]],!MemberQ[Take[q,#-1],q[[#]]]&]
A377054
First term of the n-th differences of the powers of primes. Inverse zero-based binomial transform of A000961.
Original entry on oeis.org
1, 1, 0, 0, 0, 1, -5, 15, -34, 63, -97, 115, -54, -251, 1184, -3536, 8736, -18993, 37009, -64545, 98442, -121393, 82008, 147432, -860818, 2710023, -7110594, 17077281, -38873146, 85085287, -179965647, 367885014, -725051280, 1372311999, -2481473550, 4257624252
Offset: 0
The sixth differences of A000961 begin: -5, 10, -9, 1, 6, -10, 16, -18, ..., so a(6) = -5.
This is the first column of the array
A377051.
For positions of first zeros we have
A377055.
-
q=Select[Range[100],#==1||PrimePowerQ[#]&];
Table[Sum[(-1)^(j-k)*Binomial[j,k]*q[[1+k]],{k,0,j}],{j,0,Length[q]/2}]
A375740
Numbers k such that A007916(k+1) - A007916(k) = 1. In other words, the k-th non-perfect-power is 1 less than the next.
Original entry on oeis.org
1, 3, 4, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 21, 22, 23, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 70, 71, 72, 73, 74, 75, 76, 77
Offset: 1
The non-perfect-powers are 2, 3, 5, 6, 7, 10, 11, 12, 13, ... which increase by one after positions 1, 3, 4, 6, ...
Non-perfect-powers:
Non-prime-powers (exclusive):
-
radQ[n_]:=n>1&&GCD@@Last/@FactorInteger[n]==1;
Join@@Position[Differences[Select[Range[100],radQ]],1]
-
from itertools import count, islice
from sympy import perfect_power
def A375740_gen(): # generator of terms
a, b = -1, 0
for n in count(2):
c = not perfect_power(n)
if c:
a += 1
if b&c:
yield a
b = c
A375740_list = list(islice(A375740_gen(), 52)) # Chai Wah Wu, Sep 11 2024
A375713
Indices of consecutive non-prime-powers (A361102) differing by 1. Numbers k such that the k-th and (k+1)-th non-prime-powers differ by just one.
Original entry on oeis.org
5, 8, 9, 15, 16, 17, 19, 20, 23, 24, 27, 28, 30, 31, 32, 33, 36, 38, 40, 41, 44, 45, 46, 47, 51, 52, 53, 54, 56, 57, 58, 59, 60, 61, 63, 64, 67, 68, 71, 72, 74, 75, 76, 77, 78, 79, 81, 82, 85, 87, 88, 89, 90, 93, 94, 95, 96, 97, 98, 99, 100, 103, 104, 105, 106
Offset: 1
The initial non-prime-powers are 1, 6, 10, 12, 14, 15, 18, 20, 21, which first increase by one after the fifth and eighth terms.
The inclusive version is a(n) - 1.
For non-perfect-powers we have
A375740.
Prime-powers inclusive:
Non-prime-powers inclusive:
A376308
Run-compression of the sequence of first differences of prime-powers.
Original entry on oeis.org
1, 2, 1, 2, 3, 1, 2, 4, 2, 1, 5, 4, 2, 4, 2, 4, 6, 2, 3, 4, 2, 6, 2, 6, 8, 4, 2, 4, 2, 4, 8, 4, 2, 1, 3, 6, 2, 10, 2, 6, 4, 2, 4, 6, 2, 10, 2, 4, 2, 12, 4, 2, 4, 6, 2, 8, 5, 1, 6, 2, 6, 4, 2, 6, 4, 14, 4, 2, 4, 14, 6, 4, 2, 4, 6, 2, 6, 4, 6, 8, 4, 8, 10, 2, 10
Offset: 1
The sequence of prime-powers (A246655) is:
2, 3, 4, 5, 7, 8, 9, 11, 13, 16, 17, 19, 23, 25, 27, 29, 31, 32, 37, ...
The sequence of first differences (A057820) of prime-powers is:
1, 1, 1, 2, 1, 1, 2, 2, 3, 1, 2, 4, 2, 2, 2, 2, 1, 5, 4, 2, 4, 2, 4, ...
The run-compression is A376308 (this sequence).
For squarefree numbers instead of prime-powers we have
A376305.
For run-lengths instead of compression we have
A376309.
For run-sums instead of compression we have
A376310.
A116861 counts partitions by compressed sum, by compressed length
A116608.
A373948 encodes compression using compositions in standard order.
Cf.
A001597,
A006549,
A007916,
A025475,
A034296,
A053289,
A076259,
A110969,
A120430,
A124767,
A174965,
A374251.
A373669
Least k such that the k-th maximal run of non-prime-powers has length n. Position of first appearance of n in A110969, and the sequence ends if there is none.
Original entry on oeis.org
1, 5, 7, 12, 18, 190, 28, 109, 40, 28195574, 53
Offset: 1
The maximal runs of non-prime-powers begin:
1
6
10
12
14 15
18
20 21 22
24
26
28
30
33 34 35 36
38 39 40
42
44 45 46
48
50 51 52
54 55 56 57 58
60
For squarefree runs we have firsts of
A120992.
For prime-powers runs we have firsts of
A174965.
For antiruns we have firsts of
A373672.
For runs of non-prime-powers:
A000961 lists the powers of primes (including 1).
A057820 gives first differences of consecutive prime-powers, gaps
A093555.
Cf.
A007053,
A008864,
A014963,
A027833,
A038664,
A054265,
A067774,
A356068,
A373401,
A373403,
A373671.
-
q=Length/@Split[Select[Range[10000],!PrimePowerQ[#]&],#1+1==#2&]//Most;
spna[y_]:=Max@@Select[Range[Length[y]],SubsetQ[y,Range[#1]]&];
Table[Position[q,k][[1,1]],{k,spna[q]}]
A376598
Points of nonzero curvature in the sequence of prime-powers inclusive (A000961).
Original entry on oeis.org
4, 5, 7, 9, 10, 11, 12, 13, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 68, 69, 70, 71, 73, 74, 75, 76, 77, 78, 79, 80
Offset: 1
The prime-powers inclusive (A000961) are:
1, 2, 3, 4, 5, 7, 8, 9, 11, 13, 16, 17, 19, 23, 25, 27, 29, 31, 32, 37, 41, 43, ...
with first differences (A057820):
1, 1, 1, 1, 2, 1, 1, 2, 2, 3, 1, 2, 4, 2, 2, 2, 2, 1, 5, 4, 2, 4, 2, 4, 6, 2, ...
with first differences (A376596):
0, 0, 0, 1, -1, 0, 1, 0, 1, -2, 1, 2, -2, 0, 0, 0, -1, 4, -1, -2, 2, -2, 2, 2, ...
with nonzeros at (A376598):
4, 5, 7, 9, 10, 11, 12, 13, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, ...
`
A064113 lists positions of adjacent equal prime gaps.
For prime-powers inclusive:
A057820 (first differences),
A376597 (second differences),
A376597 (inflections and undulations),
A376653 (sorted firsts in second differences).
A373670
Numbers k such that the k-th run-length A110969(k) of the sequence of non-prime-powers (A024619) is different from all prior run-lengths.
Original entry on oeis.org
1, 5, 7, 12, 18, 28, 40, 53, 71, 109, 170, 190, 198, 207, 236, 303, 394, 457, 606, 774, 1069, 1100, 1225, 1881, 1930, 1952, 2247, 2281, 3140, 3368, 3451, 3493, 3713, 3862, 4595, 4685, 6625, 8063, 8121, 8783, 12359, 12650, 14471, 14979, 15901, 17129, 19155
Offset: 1
The maximal runs of non-prime-powers begin:
1
6
10
12
14 15
18
20 21 22
24
26
28
30
33 34 35 36
38 39 40
42
44 45 46
48
50 51 52
54 55 56 57 58
60
So the a(n)-th runs begin:
1
14 15
20 21 22
33 34 35 36
54 55 56 57 58
For nonsquarefree runs we have
A373199 (if increasing), firsts of
A053797.
For prime antiruns we have
A373402.
For runs of non-prime-powers:
For runs of prime-powers:
A000961 lists the powers of primes (including 1).
A057820 gives first differences of consecutive prime-powers, gaps
A093555.
-
t=Length/@Split[Select[Range[10000],!PrimePowerQ[#]&],#1+1==#2&];
Select[Range[Length[t]],FreeQ[Take[t,#-1],t[[#]]]&]
A376680
Run-lengths of first differences of composite numbers.
Original entry on oeis.org
2, 2, 2, 2, 2, 2, 1, 4, 2, 4, 1, 2, 2, 2, 1, 4, 1, 4, 2, 4, 1, 2, 2, 4, 1, 2, 1, 4, 1, 6, 1, 2, 2, 2, 2, 2, 1, 12, 1, 2, 1, 4, 2, 8, 2, 4, 1, 4, 1, 2, 1, 4, 1, 4, 2, 8, 2, 2, 2, 10, 1, 10, 1, 2, 2, 2, 1, 4, 2, 8, 1, 4, 1, 4, 1, 4, 2, 4, 1, 2, 2, 8, 1, 12, 1, 2
Offset: 1
The composite numbers (A002808) are:
4, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 22, 24, 25, 26, 27, 28, 30, 32, 33, ...
with first differences (A073783):
2, 2, 1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, ...
with runs:
(2,2), (1,1), (2,2), (1,1), (2,2), (1,1), (2), (1,1,1,1), (2,2), (1,1,1,1), ...
with lengths (A376680):
2, 2, 2, 2, 2, 2, 1, 4, 2, 4, 1, 2, 2, 2, 1, 4, 1, 4, 2, 4, 1, 2, 2, 4, 1, 2, ...
For prime instead of composite we have
A333254, first appearances
A335406.
These are the first differences of
A376603.
A064113 lists positions of adjacent equal prime gaps.
A377052
Antidiagonal-sums of the array A377051(n,k) = n-th term of k-th differences of powers of primes.
Original entry on oeis.org
1, 3, 4, 5, 6, 13, -6, 45, -50, 113, -98, 73, 274, -1159, 3563, -8707, 19024, -36977, 64582, -98401, 121436, -81961, -147383, 860871, -2709964, 7110655, -17077217, 38873213, -85085216, 179965720, -367884935, 725051361, -1372311916, 2481473639, -4257624155
Offset: 0
The sixth antidiagonal of A377051 is (8, 1, -1, -2, -3, -4, -5), so a(6) = -6.
These are the antidiagonal-sums of
A377051.
For first zero-positions we have
A377055.
Cf.
A000961,
A025475,
A053707,
A057820,
A093555,
A174965,
A246655,
A361102,
A376340,
A376596,
A376598.
-
nn=20;
t=Table[Differences[NestList[NestWhile[#+1&, #+1,!PrimePowerQ[#]&]&,1,2*nn],k],{k,0,nn}];
Total/@Table[t[[j,i-j+1]],{i,nn},{j,i}]
Comments