OFFSET
2,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 2..1000
Dave Andersen, The Pi-Search Page.
Eric Weisstein's World of Mathematics, Pi.
EXAMPLE
n=5: insert '+' in '31415':
a(5) = Min{3+1415=1418, 31+415=446, 314+15=329, 3141+5=3146} = 329.
PROG
(Haskell)
import Data.List (inits, tails); import Data.Function (on)
a085732 n = a085732_list !! (n-2)
a085732_list = map f $ drop 2 $ inits $ concatMap show a000796_list
where f xs = minimum $ init $ tail $
zipWith (on (+) read) (inits xs) (tails xs)
-- Reinhard Zumkeller, May 02 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Jul 20 2003
STATUS
approved