login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 56th year, we are closing in on 350,000 sequences, and we’ve crossed 9,700 citations (which often say “discovered thanks to the OEIS”).

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A264834 Integers k such that A008347(k) is divisible by k. 0
1, 19, 27, 1293, 41419, 41493, 41519, 41521, 41601, 1629899, 3142492081, 3142492231 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

Inspired by A008347.

a(n) - a(n-1) = 2 for n = 8.

a(11) > 10^9. - David A. Corneth, Aug 29 2018

a(13) > 7.35*10^12, if it exists. - Giovanni Resta, Sep 05 2018

LINKS

Table of n, a(n) for n=1..12.

Romeo Meštrović, On the distribution of primes in the alternating sums of concecutive primes [sic], arXiv:1805.11657 [math.NT], 2018.

FORMULA

a(n) mod 2 = 1.

EXAMPLE

For first 19 prime numbers, (2 - 3 + 5 - 7 + 11 - 13 + 17 - 19 + 23 - 29 + 31 - 37 + 41 - 43 + 47 - 53 + 59 - 61 + 67) mod 19 = 38 mod 19 = 0. So a(2) = 19.

MATHEMATICA

Select[Range@ 1500, Mod[Abs@ Sum[(-1)^k Prime[# - k], {k, 0, # - 1}], #] == 0 &] (* Michael De Vlieger, Nov 27 2015, after Robert G. Wilson v at A008347 *)

PROG

(PARI) for(n=1, 1e5, if(sum(k=0, n-1, (-1)^(k)*prime(n-k)) % n == 0, print1(n, ", ")))

(PARI) upto(n) = my(s = t = 0, u=prime(n), res=List()); forprime(p=2, u, t++; s = (p - s); if(s % t == 0, listput(res, i))); res \\ David A. Corneth, Aug 29 2018

CROSSREFS

Cf. A008347.

Sequence in context: A146808 A147232 A141417 * A069529 A138335 A304367

Adjacent sequences:  A264831 A264832 A264833 * A264835 A264836 A264837

KEYWORD

nonn,more

AUTHOR

Altug Alkan, Nov 26 2015

EXTENSIONS

a(10) from David A. Corneth, Aug 29 2018

a(11)-a(12) from Giovanni Resta, Sep 03 2018

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 2 05:01 EST 2021. Contains 349437 sequences. (Running on oeis4.)