OFFSET
1,1
LINKS
Max Alekseyev, Table of n, a(n) for n = 1..36
S. Das Dividing by Dropping Digits
FORMULA
a(n) = A057494(n) - (n+1)^2. - Max Alekseyev, Jan 25 2010
EXAMPLE
We have the following a(1)=23 two-digit numbers not ending in zero: 11, 12, 13, 14, 15, 16, 17, 18, 19, 22, 24, 26, 28, 33, 36, 39, 44, 48, 55, 66, 77, 88, 99; each is divisible by its tens digit.
MATHEMATICA
k = s = 0; Do[ While[ k < 10^n - 1, k++; s = s + DivisorSigma[ 0, k ]]; Print[s], {n, 9}] (* Robert G. Wilson v, Jun 05 2004 *)
PROG
(Python)
from math import isqrt
def A095256(n): return -(s:=isqrt(m:=10**n))**2+(sum(m//k for k in range(1, s+1))<<1)-(n+1)**2 # Chai Wah Wu, Oct 23 2023
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Lekraj Beedassy, Jul 02 2004
EXTENSIONS
a(5)-a(9) from Robert G. Wilson v, Jul 05 2004
a(10) onward from Max Alekseyev, Jan 25 2010, Aug 04 2015
STATUS
approved