OFFSET
0,3
COMMENTS
The question originated from generalization of the first puzzle 'Low Budget' in the book Mathematical Puzzles and Curiosities.
REFERENCES
I. David, T. Khovanova, and Y. Shpilman, Mathematical Puzzles and Curiosities, World Scientific, 2026, p.2.
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,4,-8).
FORMULA
a(n) = 2^(n-4)*(10*n - 3 - (-1)^n) for n>=1.
G.f.: x*(2*x^2+2*x+1)/((2*x+1)*(2*x-1)^2). - Alois P. Heinz, May 26 2026
EXAMPLE
For n=4, one permutation that realizes the minimum value is 2,4,1,8. So a(4) = 2*4 + 4*1 + 1*8 + 8*2 = 36. Thus, a(4) = 36.
MATHEMATICA
A394572[n_] := Ceiling[2^(n - 4)*(10*n - 3 - (-1)^n)];
Array[A394572, 50, 0] (* Paolo Xausa, Jun 08 2026 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Tanya Khovanova and PRIMES STEP junior group, May 25 2026
STATUS
approved
