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”).

A059903
Periodic part of continued fraction for sqrt(n), encoded by raising successive primes to the terms. If sqrt(n)=c0+[c1,c2,c3...] then a(n)=2^c1*3^c2*5^c3*...
1
1, 4, 18, 1, 16, 324, 72030, 162, 1, 64, 5832, 2916, 372027810, 10588410, 1458, 1, 256, 104976, 1036385881030500, 26244, 9421689827550, 4946387159463750, 1556496270, 13122, 1, 1024, 1889568, 2542277241000, 76256028326940, 236196
OFFSET
1,2
COMMENTS
Could be made less gigantic by omitting final terms in continued fraction, which are always 2*c0.
FORMULA
a(n) = A059900(A059904(n)).
EXAMPLE
sqrt(14) = 3+[1,2,1,6] so a(14) = 2^1*3^2*5^1*7^6 = 10588410.
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Marc LeBrun, Feb 07 2001
EXTENSIONS
Offset corrected by Sean A. Irvine, Oct 14 2022
STATUS
approved