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

 

Logo

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A111309 Absolute difference between the sum of the odd digits and the sum of the even digits of the n-th prime. 1
2, 3, 5, 7, 2, 4, 8, 10, 1, 7, 4, 10, 3, 1, 3, 8, 14, 5, 1, 8, 10, 16, 5, 1, 16, 2, 4, 8, 10, 5, 6, 5, 11, 13, 6, 7, 13, 2, 2, 11, 17, 6, 11, 13, 17, 19, 0, 1, 3, 5, 4, 10, 5, 4, 10, 5, 1, 6, 12, 9, 7, 10, 10, 5, 7, 11, 7, 13, 6, 8, 11, 17, 4, 13, 19, 2, 4, 19, 3, 5, 6, 5, 0, 2, 8, 5, 1, 8, 9, 7, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

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

Ivars Peterson, Light Rings

EXAMPLE

a(9)=1 because the 9th prime is 23 and the absolute difference between 2 & 3 is 1.

MATHEMATICA

f[n_] := (id = IntegerDigits[ Prime[n]]; Abs[(Plus @@ id) - 2Plus @@ Select[id, OddQ]]); Table[f[n], {n, 91}]

CROSSREFS

Cf. A071650.

Sequence in context: A074464 A074463 A038194 * A007605 A077765 A078400

Adjacent sequences:  A111306 A111307 A111308 * A111310 A111311 A111312

KEYWORD

nonn,base

AUTHOR

Zak Seidov and Robert G. Wilson v, Mar 02 2005

EXTENSIONS

Edited by Charles R Greathouse IV, Aug 04 2010

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 January 19 12:36 EST 2020. Contains 331049 sequences. (Running on oeis4.)