OFFSET
0,2
REFERENCES
M. V. Connolly and W. J. Knight, Search in an array in which probe costs grow exponentially or factorially, preprint, 1990.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..1000
M. V. Connolly and W. J. Knight, Search in an array in which probe costs grow exponentially or factorially, preprint, 1990.
PROG
(PARI) geta(a, j) = if (j <= 0, 0, a[j]);
lista(nn) = {print1(0, ", "); a = vector(nn); for (i = 1, nn, amin = 0; for (k = 1, i, new = geta(a, k-1) + 2^k*(i + geta(a, i-k)); if (! amin, amin = new, amin = min(amin, new); ); ); print1(amin, ", "); a[i] = amin; ); } \\ Michel Marcus, Sep 09 2013, May 09 2014
(Haskell)
a006696 n = a006696_list !! (n-1)
a006696_list = 0 : f 1 [0] where
f u vs = w : f (u + 1) (w : vs) where
w = minimum $ zipWith (+)
(reverse vs) (zipWith (*) (tail a000079_list) (map (+ u) vs))
- Reinhard Zumkeller, May 08 2014
CROSSREFS
KEYWORD
nonn,nice,easy
AUTHOR
EXTENSIONS
More terms from Michel Marcus, Sep 09 2013
Offset changed to 0 by Reinhard Zumkeller, May 08 2014
STATUS
approved