login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A309431 a(n) = Sum_{k=2..p} (-1)^k * A240236(p, k), where p is n-th prime. 2
1, 1, 0, 2, 5, -2, -6, 1, 10, 7, 13, -11, -15, -5, 32, 0, 34, -23, 5, 30, -66, 33, 29, -18, -60, -17, 13, 69, -21, -65, 65, 17, 8, 50, -6, 24, -33, -23, 130, 13, 115, -93, 184, -132, 4, 48, -11, 31, 70, -99, -23, 192, -258, 154, -68, 155, -18, 16, -35, -101, -11 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
FORMULA
a(n) = A309531(A000040(n)).
PROG
(PARI) {a(n) = sum(k=2, prime(n), (-1)^k*sumdigits(prime(n), k))}
CROSSREFS
Sequence in context: A159989 A195702 A309714 * A344077 A198539 A121311
KEYWORD
sign,base
AUTHOR
Seiichi Manyama, Aug 06 2019
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 02:53 EDT 2024. Contains 371906 sequences. (Running on oeis4.)