+ Reply to Thread
Results 1 to 1 of 1

Coin flipping - logic formulas

  1. #1
    Registered User
    Join Date
    11-01-2011
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    4

    Coin flipping - logic formulas

    Given a stack of n coins, flip the top coin, then the stack of the top two coins, then the stack of the top three etc... starting again with the top coin after flipping all n coins. A flip of m coins reverses their order and inverts their state. This is the number of flips required to restore the stack to its original configuration.

    Hi,

    I have been solving/modelling this problem using different ways (imperative, oop, funtional etc). I have solved it using vba but now want to try solving it using only worksheet functions.

    I have attached a rough copy that I did manually (I have too much time on my hands!). The problem models quite easily this way but I want a formula that can pasted to allow any size stack of coins. I have played around with OFFSET() but this so far has become too complicated and unwieldy. The manual formula entry is simple see entries beginning J30.
    Any pointers?

    Thanks in advance.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1