A077188 a(n) = A077186(n)/prime(n).
0, 4107, 0, 1763664903, 11, 949665717
Offset: 1
Examples
a(5) = 11 = 121/11.
Extensions
Edited by Max Alekseyev, Sep 14 2009
This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
a(5) = 11 = 121/11.
a(5) = 12321 is a multiple of 9.
a(5) = 2 as 121 is a multiple of 11.
{ a(n) = local(p,c10,z,u,v,l,k,lk,L,q); p=prime(n); c10=Mod(10,p); z=znorder(c10); u=v=Mod(1,p); l=1; k=2; L=List(); while(1, lk=1+log(k+0.1)\log(10); if(k==10^(lk-1), L=List()); if( u*c10^(l+lk)+k*c10^l+v==0, return(k)); q=0; t=[u,v,k%p,l%z]; for(j=1,#L,if(t==L[j], q=1+#L-j)); if(q, k+=((10^lk-1-k)\q)*q; L=List(), listput(L,t)); u=u*c10^lk+k; v+=k*c10^l; l+=lk; k++) } \\ Max Alekseyev, Sep 11 2009
a(5) = 12321/9 = 1369.
Comments