login

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 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A090431
Difference between sums of digits of n and n-th prime.
9
-1, -1, -2, -3, 3, 2, -1, -2, 4, -10, -2, -7, -1, -2, -5, -1, -6, 2, -3, -6, -7, -12, -6, -11, -9, 6, 5, 2, 1, -2, -6, 0, -5, -6, -6, 2, -3, 1, -2, -7, -12, -4, -4, -5, -8, -9, 7, 5, 2, -8, -2, -7, 1, 1, -4, 0, -5, 3, -2, -5, -6, -6, -1, 5, 4, 1, 6, 1, 1, -9, -3, -8, -6, -2
OFFSET
1,3
COMMENTS
a(n) = A007953(n) - A007605(n);
a(A033549(n))=a(A049084(A033548(n)))=0; a(A049084(A090432(n)))<0; a(A049084(A090433(n)))>0.
LINKS
PROG
(Haskell)
a090431 n = a007953 n - a007605 n -- Reinhard Zumkeller, Mar 16 2014
CROSSREFS
Cf. A239324 (partial sums).
Sequence in context: A038529 A176259 A132312 * A107336 A282013 A275299
KEYWORD
sign,base
AUTHOR
Reinhard Zumkeller, Dec 01 2003
STATUS
approved