cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-3 of 3 results.

A134681 Number of digits of all the divisors of n.

Original entry on oeis.org

1, 2, 2, 3, 2, 4, 2, 4, 3, 5, 3, 7, 3, 5, 5, 6, 3, 7, 3, 8, 5, 6, 3, 10, 4, 6, 5, 8, 3, 11, 3, 8, 6, 6, 5, 12, 3, 6, 6, 11, 3, 11, 3, 9, 8, 6, 3, 14, 4, 9, 6, 9, 3, 11, 6, 11, 6, 6, 3, 18, 3, 6, 8, 10, 6, 12, 3, 9, 6, 12, 3, 17, 3, 6, 9, 9, 6, 12, 3, 15, 7, 6, 3, 18, 6, 6, 6, 12, 3, 18, 6, 9, 6, 6, 6, 18
Offset: 1

Views

Author

Reinhard Zumkeller, Nov 06 2007

Keywords

Comments

Also number of digits of the concatenation of all divisors of n (A037278). - Jaroslav Krizek, Jun 15 2011

Crossrefs

Programs

  • Maple
    A134681 := proc(n)
        add(A055642(d),d=numtheory[divisors](n)) ;
    end proc:
    seq(A134681(n),n=1..80) ; # R. J. Mathar, Feb 21 2025
  • Mathematica
    Array[Total[IntegerLength[Divisors[#]]]&,100] (* Harvey P. Dale, Jun 08 2013 *)
  • PARI
    a(n) = sumdiv(n, d, #digits(d)); \\ Michel Marcus, Sep 01 2023
    
  • Python
    from sympy import divisors
    def a(n): return sum(len(str(d)) for d in divisors(n, generator=True))
    print([a(n) for n in range(1, 97)]) # Michael S. Branicky, Nov 03 2023

Formula

a(n) = A055642(A037278(n)) = Number of digits of the concatenation of all divisors of n.
From Sida Li, Sep 01 2023: (Start)
a(n) = Sum_{d divides n} (floor(log_10(d))+1).
log_10(Product_{d divides n} d) <= a(n) <= log_10(Product_{d divides n} d) + sigma_0(n), where sigma_0(n) = A000005(n).
Equivalently, sigma_0(n)*log_10(n)/2 <= a(n) <= sigma_0(n)*log_10(n)/2 + sigma_0(n), obtained by formula in A007955.
For x >= 5, c2*log(x)^2 + c1*log(x) + c0 <= (1/x)*Sum_{n<=x} a(n) <= c2*log(x)^2 + (c1+1)*log(x) + 2*c0, where c2 = 1/(2*log(10)), c1 = (gamma-1)/log(10), c0 = 2*gamma-1, and gamma is Euler's constant. This is obtained by hyperbola trick for Sum_{n<=x} sigma_0(n), and Abel partial summation on Sum_{n<=x} sigma_0(n)*log(n). (End)

Extensions

New name from Jaroslav Krizek, Jun 15 2011

A190998 Digital root of concatenation of all divisors of n (A037278).

Original entry on oeis.org

1, 3, 4, 7, 6, 3, 8, 6, 4, 9, 3, 1, 5, 6, 6, 4, 9, 3, 2, 6, 5, 9, 6, 6, 4, 6, 4, 2, 3, 9, 5, 9, 3, 9, 3, 1, 2, 6, 2, 9, 6, 6, 8, 3, 6, 9, 3, 7, 3, 3, 9, 8, 9, 3, 9, 3, 8, 9, 6, 6, 8, 6, 5, 1, 3, 9, 5, 9, 6, 9, 9, 6, 2, 6, 7, 5, 6, 6, 8, 6, 4, 9, 3, 8, 9, 6, 3, 9, 9, 9, 4, 6, 2, 9, 3, 9, 8, 9, 3, 1, 3, 9, 5, 3, 3
Offset: 1

Views

Author

Jaroslav Krizek, Jun 15 2011

Keywords

Comments

Also digital root of A034690 (sum of digits of all the divisors of n).
Also digital root of A000203 (sum of divisors of n). - Michel Marcus, Sep 13 2014

Examples

			For n = 12: 1 + 2 + 3 + 4 + 6 + 1 + 2 = 19, 1 + 9 = 10, 1 + 0 = 1; a(12) = 1.
		

Crossrefs

Programs

  • Maple
    A190998:=proc(n) local d, i, s: d:=numtheory[divisors](n): s:=0: for i from 1 to nops(d) do s:=s+((d[i]-1) mod 9)+1: if(s>=10)then s:=((s-1) mod 9)+1: fi: od: return s: end: seq(A190998(n), n=1..105); # Nathaniel Johnston, Jun 15 2011

A231817 Multiplicative digital root of concatenation of all divisors of n (A037278).

Original entry on oeis.org

1, 2, 3, 8, 5, 8, 7, 8, 4, 0, 1, 6, 3, 0, 5, 0, 7, 0, 9, 0, 8, 8, 6, 8, 0, 4, 6, 0, 8, 0, 3, 0, 4, 6, 0, 0, 2, 8, 8, 0, 4, 0, 2, 0, 0, 6, 6, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 6, 4, 0, 0, 0, 0, 8, 0, 2, 0, 7, 0, 2, 8, 0, 0, 8, 0, 8, 0, 0, 6, 8, 0, 0, 0, 0
Offset: 1

Views

Author

Jaroslav Krizek, Nov 13 2013

Keywords

Comments

Also multiplicative digital root of A190997 (product of digits of all the divisors of n) or A007955 (product of divisors of n).
Conjecture: a(n) = 0 for almost all n.
793 of the first 1000 terms are zeros, and 9147 out of the first 10000 terms are zeros. - Harvey P. Dale, Jul 30 2019

Examples

			For n=12: 1*2*3*4*6*1*2=288, 2*8*8=128, 1*2*8=16, 1*6=6; a(12)=6.
		

Crossrefs

Cf. A037278, A007955, A190998 (associative digital root of digits of all the divisors of n), A031347 (multiplicative digital root of n).

Programs

  • Mathematica
    Table[NestWhile[Times@@IntegerDigits[#]&,Times@@Flatten[ IntegerDigits/@ Divisors[ n]], #>9&],{n,90}] (* Harvey P. Dale, Jul 30 2019 *)
Showing 1-3 of 3 results.