A090431 Difference between sums of digits of n and n-th prime.
-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
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Crossrefs
Cf. A239324 (partial sums).
Programs
-
Haskell
a090431 n = a007953 n - a007605 n -- Reinhard Zumkeller, Mar 16 2014
Comments