login
A109211
In the decimal expansion of Pi, positions of the final digit of subsequences with total sum = 100.
2
21, 37, 47, 48, 57, 60, 63, 69, 74, 75, 85, 85, 88, 89, 91, 95, 118, 121, 126, 132, 134, 139, 141, 146, 150, 151, 156, 163, 164, 167, 171, 173, 173, 178, 180, 182, 186, 186, 187, 189, 189, 192, 194, 195, 198, 202, 203, 205, 210, 218, 220, 227, 227, 233, 253
OFFSET
1,1
FORMULA
a(n) = A109210(n) + A109212(n) - 1. [corrected by Jinyuan Wang, Mar 22 2020]
PROG
(PARI) default(realprecision, 101000); v=digits(floor(Pi*10^10^5));
lista(nn) = {my(x=21, s=103); for(k=2, nn, s-=v[k-1]; if(s==100, print1(x, ", "), while(s<100, s+=v[x++]); if(s==100, print1(x, ", ")))); } \\ Jinyuan Wang, Mar 22 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, Jun 22 2005
STATUS
approved