OFFSET
0,1
FORMULA
Pattern exhibited by early terms does not continue without interruption. First disruption occurs at a(25)=444444444. Terms with k-digits exhibit the earlier pattern where (10^k-1)/9 is squarefree and k=9 is the first occurrence where (10^k-1)/9 is not squarefree. Others occur at k=18, 22, 27, 36, 42, 44, 45. - Ray Chandler, Aug 04 2003
PROG
(Python)
from itertools import count, islice
from math import prod, isqrt
from sympy import factorint
def A084007_gen(): # generator of terms
for l in count(1):
m = 10**l-1
x = prod(p for p, e in factorint(m).items() if e&1)
y = isqrt(x*m)
yield from (j*y for j in range(isqrt(10**(l-1)//x)+1, isqrt(m//x)+1))
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy and Meenakshi Srikanth (menakan_s(AT)yahoo.com), May 23 2003
EXTENSIONS
More terms from Ray Chandler, May 31 2003
More terms from Ray Chandler, Aug 04 2003
STATUS
approved
