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

A078815
a(n) = A078215(n+1)/A078215(n).
2
1, 25, 121, 16, 121, 1089, 121, 1089, 1089, 1156, 1089, 1089, 1089, 1089, 1024, 1089, 10404, 1089, 1024, 1089, 1024, 10404, 10404, 10404, 10404, 10404, 10404, 10404, 1024, 10404, 10404, 1024, 10404, 1024, 1024, 10404, 1024, 1024, 1024, 1024, 1024
OFFSET
1,2
PROG
(PARI) {print1(a=1, ", "); for(n=2, 41, k=floor(log(a)/log(10))+1; s=n; t=s+1; m=floor(log(s)/log(10))+1; d=k-m; s=s*10^d; t=t*10^d; b=1; while(b>0, q=floor(s/a); while(b>0&&(p=q*a)<t, if(p>=s&&issquare(p), print1(q, ", "); b=0, q++)); s=10*s; t=10*t); a=p)}
CROSSREFS
Sequence in context: A360511 A124953 A126412 * A270368 A206472 A036057
KEYWORD
base,nonn
AUTHOR
Klaus Brockhaus, Dec 06 2002
STATUS
approved