|
|
A303388
|
|
Sequence gives the denominators, in increasing values, of Egyptian fractions such that their alternating sum has the concatenation of these denominators as decimal part. a(1) = 3.
|
|
21
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
EXAMPLE
|
We start from 3 because 1/3 = 0.3333...
Then the next integer is 299 because 1/3 - 1/299 = 0.32998885.
Next term is 98957 because 1/3 - 1/299 + 1/98957 = 0.3299989571272... and so on.
The alternating sum is 0.3 299 98957 118885566690 ...
|
|
MAPLE
|
with(numtheory): P:=proc(q) local a, b, d, n, t; a:=1/3; b:=1; d:=3; print(d); t:=1;
for n from 1 to q do if trunc(evalf(a+(-1)^t/n, 100)*10^(b+ilog10(n)+1))=d*10^(ilog10(n)+1)+n then b:=b+ilog10(n)+1; d:=d*10^(ilog10(n)+1)+n; a:=a+(-1)^t/n; t:=t+1; print(n); fi; od; end: P(10^20);
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|