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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A095418 Excess of sum of all decimal digits of distinct prime factors for n-th repunit over corresponding digit-sum for repunit itself (which is n). 6
-1, 0, 10, 0, 10, 20, 30, 17, 32, 26, 34, 35, 49, 53, 42, 51, 43, 74, 0, 56, 95, 77, 0, 81, 38, 94, 97, 106, 104, 80, 109, 123, 108, 96, 97, 132, 100, 65, 145, 136, 141, 184, 145, 173, 123, 99, 139, 172, 196, 120, 170, 176, 179, 213, 161, 169, 122, 201, 217, 184, 211, 216 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

LINKS

Giovanni Resta, Table of n, a(n) for n = 1..322

FORMULA

a(n) = A095402(A002275(n)) - n = A095417(n) - n.

EXAMPLE

n=60: concatenated distinct-prime factor-set for 60th-repunit is:

371113313741611012112412712161354190919901279612906161418890139526741,

its digit sum is 244, so a(60) = 244 - 60 = 184.

The value of this excess-sum is zero if n=2,4,19,23.

MATHEMATICA

a[1] = -1; a[n_] := Total@ Flatten[IntegerDigits /@ First /@ FactorInteger[(10^n - 1)/9]] - n; Array[a, 62] (* Giovanni Resta, Jul 19 2018 *)

CROSSREFS

Cf. A095402, A002275, A095370, A095413, A095414, A095415, A095416, A095417.

Sequence in context: A320227 A284780 A010681 * A055961 A196081 A320380

Adjacent sequences:  A095415 A095416 A095417 * A095419 A095420 A095421

KEYWORD

sign,base

AUTHOR

Labos Elemer, Jun 22 2004

EXTENSIONS

Data corrected by Giovanni Resta, Jul 19 2018

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 July 8 17:40 EDT 2020. Contains 335524 sequences. (Running on oeis4.)