OFFSET
1,1
COMMENTS
Let pi(n) denote the n-th digit of Pi, and let e(n) denote the n-th digit of e. Define a(n) = pi(n)*e(n) + pi(n+1)*e(n+1).
EXAMPLE
The first two digits of Pi are 3 and 1; the first two digits of e are 2 and 7. Then a(1) = 3*2 + 1*7 = 13.
The second and third digits of Pi are 1 and 4; the corresponding digits in e are 7 and 1; so a(2) = 1*7 + 4*1 = 11.
MATHEMATICA
nn=80; #[[1]]*#[[2]]+#[[3]]*#[[4]]&/@Partition[Riffle[RealDigits[ Pi, 10, nn][[1]], RealDigits[E, 10, nn][[1]]], 4, 2] (* Harvey P. Dale, Jun 13 2011 *)
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Don Love (moptop35(AT)hotmail.com), May 02 2009
EXTENSIONS
Corrected and extended by Harvey P. Dale, Jun 13 2011
STATUS
approved