OFFSET
1,1
COMMENTS
Here "original configuration" seems to mean each coin in original orientation and either original or reverse order; for the original order and either original or reverse orientation n*A002326(n) flips required, while for both original order and original orientation n*A003558(n) required. - Henry Bottomley, Jan 19 2007
Birtwistle (1973) attributes the problem to Iain Bride and John Gilder of UMIST (University of Manchester Institute of Science and Technology).
REFERENCES
G. M. Birtwistle, Simula Begin, Auerbach Publishers, Philadelphia, 1973 [Uses this problem to illustrate the power of the Simula language]
Popular Computing (Calabasas, CA), Penny Flipping, Vol. 3 (No. 23, Feb 1973), pages PC23-10 to PC23-13) and Vol. 3 (No. 29, Aug 1975), pages PC29-6 to PC29-8. Gives first 32 terms.
LINKS
B. B. Newman, The Flippin' Coins Problem, Mathematics Magazine, Vol. 54 (1981), pp. 51-59.
FORMULA
For n>1, if A002326(n)=A003558(n) then a(n)=n*A002326(n), otherwise a(n)=n*A002326(n)-1. - Henry Bottomley, Jan 19 2007
EXAMPLE
For 3 coins (starting with HHH) the flips move the stack through the sequence: HHH -1-> THH -2-> THH -3-> TTH -1-> HTH -2-> HTH -3-> THT -1-> HHT -2-> TTT -3-> HHH. (-n-> indicates n coins are flipped)
MATHEMATICA
b[n_] := MultiplicativeOrder[2, 2n+1];
c[n_] := MultiplicativeOrder[2, 2n+1, {-1, 1}];
a[1] = 2; a[n_] := If[b[n] == c[n], n*b[n], n*b[n]/2 - 1];
Array[a, 50] (* Jean-François Alcover, Oct 29 2017, after Henry Bottomley *)
CROSSREFS
KEYWORD
easy,nonn,nice
AUTHOR
Richard Forster (gbrl01(AT)yahoo.co.uk), Jan 02 2004
STATUS
approved