login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A077514
Largest n-digit squarefree number beginning with n.
1
29, 399, 4999, 59999, 699999, 7999999, 89999999, 999999998, 1099999999, 11999999999, 129999999999, 1399999999999, 14999999999999, 159999999999999, 1699999999999999, 17999999999999999, 189999999999999997
OFFSET
2,1
COMMENTS
Let d = n - number of digits in n. Question: Is n*10^d -1 always a squarefree number?
If 9 divides n-1, then 9 divides n*10^d-1, so it is not squarefree. - Enrique Pérez Herrero, Apr 15 2015
MAPLE
a:= proc(n) local d, k;
d:= ilog10(n)+1;
for k from (n+1)*10^(n-d)-1 by -1 do
if numtheory:-issqrfree(k) then return(k) fi
od
end proc:
seq(a(n), n=2..50); # Robert Israel, Apr 17 2015
CROSSREFS
Cf. A077513.
Sequence in context: A142327 A160298 A077508 * A210260 A010945 A022624
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 08 2002
EXTENSIONS
More terms from Sascha Kurz, Jan 04 2003
STATUS
approved