OFFSET
1,2
COMMENTS
From David Amar (dpamar(AT)gmail.com), Jul 12 2010: (Start)
This sequence is well defined.
In the n+1 first repunits (see A002275), there are at least 2 numbers that have the same value modulo n (pigeonhole principle).
The difference between those two numbers contains only 1's and 0's in decimal representation. (End)
REFERENCES
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..10000 (terms 1..1999 from T. D. Noe, terms 2000..9998 from N. J. A. Sloane [based on A004290])
FORMULA
a(n) = A004290(n)/n.
a(n) < 10^(n+1) / (9n). - Charles R Greathouse IV, Jan 09 2012
EXAMPLE
3*37 = 111 and no integer k < 37 has this property, hence a(3)=37.
PROG
(PARI) d(n, i)=floor(n/10^(i-1))-10*floor(n/10^i);
test(n)=sum(i=1, ceil(log(n)/log(10)), if(d(n, i)*(1-d(n, i)), 1, 0));
a(n)=if(n<0, 0, s=1; while(test(n*s)>0, s++); s)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Benoit Cloitre, Feb 13 2003
EXTENSIONS
More terms from Vladeta Jovovic and Matthew Vandermast, Feb 14 2003
Definition simplified by Franklin T. Adams-Watters, Jan 09 2012
STATUS
approved