|
|
A172498
|
|
a(n) = denominator of fraction a/b, where gcd(a, b) = 1, whose decimal representation has the form 0.(1)(2)(3)...(n-1)(n)... with period (1)(2)(3)...(n-1)(n).
|
|
4
|
|
|
9, 33, 333, 9999, 33333, 333333, 9999999, 11111111, 111111111, 99999999999, 3333333333333, 333333333333333, 99999999999999999, 3333333333333333333, 333333333333333333333, 99999999999999999999999
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
EXAMPLE
|
a(10) = 99999999999; 12345678910 / 99999999999 = 0.1234567891012345678910... (period 12345678910).
|
|
PROG
|
(Sage)
s = ''.join(str(i) for i in range(1, n+1))
f = Integer(s) / (10**len(s)-1)
return f.denominator()
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|