login
A064798
Sum of primes dividing the repunit numbers (with repetition).
1
0, 0, 11, 40, 112, 312, 71, 4888, 322, 333710, 9414, 534888, 10073, 265371785, 913990, 2906544, 5882692, 5365294080, 386339, 1111111111111111111, 41017, 10845593, 547805, 11111111111111111111111, 100000284, 182521260315
OFFSET
0,3
LINKS
Giovanni Resta, Table of n, a(n) for n = 0..322 (first 101 terms from Harry J. Smith)
MATHEMATICA
a[n_] := If[n < 2, 0, Total[Times @@@ FactorInteger[Floor[10^n/9]]]]; Array[a, 30, 0] (* Giovanni Resta, Jul 19 2018 *)
PROG
(PARI) a(n) = (10^n-1)/9; {sopfr(n, s, fac, i) = fac=factor(n); for(i=1, matsize(fac)[1], s=s+fac[i, 1]*fac[i, 2]); return(s); } for(n=0, 35, print1(sopfr(a(n)), ", "))
(PARI) sopfr(n)= { local(f, s=0); f=factor(n); for(i=1, matsize(f)[1], s+=f[i, 1]*f[i, 2]); return(s) } { for (n=0, 100, write("b064798.txt", n, " ", sopfr((10^n - 1)/9)) ) } \\ Harry J. Smith, Sep 26 2009
CROSSREFS
Sequence in context: A337130 A353447 A059142 * A056124 A356043 A225919
KEYWORD
nonn,base
AUTHOR
Jason Earls, Oct 18 2001
STATUS
approved