A204892 Least k such that n divides s(k)-s(j) for some j in [1,k), where s(k)=prime(k).
2, 3, 3, 4, 4, 5, 7, 5, 5, 6, 6, 7, 10, 7, 7, 8, 8, 9, 13, 9, 9, 10, 16, 10, 16, 10, 10, 11, 11, 12, 19, 12, 20, 12, 12, 13, 22, 13, 13, 14, 14, 15, 24, 15, 15, 16, 25, 16, 26, 16, 16, 17, 29, 17, 30, 17, 17, 18, 18, 19, 31, 19, 32, 19, 19, 20, 33, 20, 20, 21
Offset: 1
Keywords
A205372
Least s(k) such that n divides s(k)-s(j) for some jA024675.
6, 6, 9, 12, 9, 12, 18, 12, 15, 26, 15, 18, 30, 18, 21, 34, 21, 30, 34, 26, 30, 26, 50, 30, 34, 30, 39, 34, 50, 34, 76, 50, 39, 60, 39, 42, 76, 42, 45, 86, 45, 60, 64, 50, 60, 50, 56, 60, 64, 56, 60, 56, 129, 60, 64, 60, 69, 64, 93, 64, 76, 134, 69, 76, 69, 72, 76
Offset: 1
Keywords
Comments
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Programs
-
Maple
N:= 200: # for terms before the first > the greatest prime <= N P:= select(isprime, [seq(i,i=3..N,2)]): S:= (P[1..-2]+P[2..-1])/2: f:= proc(n) local T,R,i; T:= S mod n; R:= {}: for i from 1 to nops(T)-1 do R:= R union {T[i]}; if member(T[i+1],R) then return S[i+1] fi; od; FAIL end proc: Res:= NULL: for n from 1 do v:= f(n); if v = FAIL then break fi; Res:= Res, v od: Res; # Robert Israel, Sep 09 2020
-
Mathematica
(See the program at A205153.)
A205374 s(k)-s(j), where (s(k),s(j)) is the least such pair for which n divides their difference, and s(j)=(prime(j+1) + prime(j+2))/2.
2, 2, 3, 8, 5, 6, 14, 8, 9, 20, 11, 12, 26, 14, 15, 16, 17, 18, 19, 20, 21, 22, 46, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 80, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69
Offset: 1
Keywords
Comments
For a guide to related sequences, see A204892.
Programs
-
Mathematica
(See the program at A205153.)
A204980 Ordered differences of distinct averages of two consecutive odd primes.
2, 5, 3, 8, 6, 3, 11, 9, 6, 3, 14, 12, 9, 6, 3, 17, 15, 12, 9, 6, 3, 22, 20, 17, 14, 11, 8, 5, 26, 24, 21, 18, 15, 12, 9, 4, 30, 28, 25, 22, 19, 16, 13, 8, 4, 35, 33, 30, 27, 24, 21, 18, 13, 9, 5, 38, 36, 33, 30, 27, 24, 21, 16, 12, 8, 3, 41, 39, 36, 33, 30, 27, 24, 19
Offset: 1
Keywords
Comments
For a guide to related sequences, see A204892.
Examples
a(1)=s(2)-s(1)=6-4=2 a(2)=s(3)-s(1)=9-4=5 a(3)=s(3)-s(2)=9-6=3 a(4)=s(4)-s(1)=12-4=8 a(5)=s(4)-s(2)=12-6=6
Programs
-
Mathematica
(See the program at A205153.)
A205154
The index j
1, 1, 2, 1, 1, 2, 1, 1, 2, 2, 1, 2, 1, 1, 2, 6, 1, 4, 5, 2, 3, 1, 1, 2, 3, 1, 4, 2, 7, 1, 13, 6, 2, 8, 1, 2, 11, 1, 2, 2, 1, 6, 7, 2, 5, 1, 3, 4, 5, 2, 3, 1, 20, 2, 3, 1, 4, 2, 10, 1, 5, 19, 2, 4, 1, 2, 3, 1, 4, 2, 5, 1, 8, 4, 2, 8, 1, 5, 8, 2
Offset: 1
Keywords
Comments
For a guide to related sequences, see A204892.
Programs
-
Mathematica
(See the program at A205153.)
A205373 s(A204154), where s(j)=(prime(j+1) + prime(j+2))/2.
4, 4, 6, 4, 4, 6, 4, 4, 6, 6, 4, 6, 4, 4, 6, 18, 4, 12, 15, 6, 9, 4, 4, 6, 9, 4, 12, 6, 21, 4, 45, 18, 6, 26, 4, 6, 39, 4, 6, 6, 4, 18, 21, 6, 15, 4, 9, 12, 15, 6, 9, 4, 76, 6, 9, 4, 12, 6, 34, 4, 15, 72, 6, 12, 4, 6, 9, 4, 12, 6, 15, 4, 26, 12, 6, 26, 4, 15, 26, 6
Offset: 1
Keywords
Comments
For a guide to related sequences, see A204892.
Programs
-
Mathematica
(See the program at A205153.)
A205375 (1/n)*A205374(n).
2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 1
Keywords
Comments
For a guide to related sequences, see A204892.
Programs
-
Mathematica
(See the program at A205153.)
A205152 Least k such that n divides a difference between distinct averages of consecutive odd primes, as ordered in A204980.
1, 1, 3, 4, 2, 5, 11, 4, 8, 23, 7, 12, 29, 11, 17, 42, 16, 32, 41, 23, 31, 22, 79, 30, 39, 29, 49, 38, 85, 37, 184, 84, 47, 113, 46, 57, 182, 56, 68, 212, 67, 111, 127, 80, 110, 79, 94, 109, 125, 93, 108, 92, 426, 107, 123, 106, 140, 122, 241, 121, 176, 454
Offset: 1
Keywords
Comments
For a guide to related sequences, see A204892.
Programs
-
Mathematica
(See the program at A205153.)
Comments
Examples
Links
Crossrefs
Programs
Mathematica
PARI