login
This site is supported by donations to The OEIS Foundation.

 

Logo


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

1,2

LINKS

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

FORMULA

a(n) = A007605(n) - A104261(n).

MATHEMATICA

sodod={}; Do[id=IntegerDigits[Prime[i]]; lid=Length[id]; sod=Sum[If[OddQ[id[[k]]], id[[k]], 0], {k, lid}]; sodod={sodod, sod}, {i, 200}]; sodod//Flatten

f[n_] := Plus @@ Select[ IntegerDigits[ Prime[n]], OddQ[ # ] &]; Table[ f[n], {n, 88}] (* Robert G. Wilson v, Nov 03 2005 *)

CROSSREFS

Sum of even digits (2, 4, 6, 8) of n-th prime: A104261, sum of prime digits (2, 3, 5, 7) of n-th prime: A104250, sum of composite (nonprime) digits (1, 4, 6, 8, 9) of n-th prime: A104251, sum of digits of primes: A007605, primes: A000040.

Sequence in context: A179650 A131214 A271833 * A263792 A263411 A121573

Adjacent sequences:  A104257 A104258 A104259 * A104261 A104262 A104263

KEYWORD

nonn,base

AUTHOR

Zak Seidov, Feb 26 2005

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified February 21 06:42 EST 2018. Contains 299390 sequences. (Running on oeis4.)