login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A372256 a(n) = (n-1)!/2^floor((n-1)/2) + floor((n-1)/2). 3
1, 1, 2, 4, 8, 32, 93, 633, 2524, 22684, 113405, 1247405, 7484406, 97297206, 681080407, 10216206007, 81729648008, 1389404016008, 12504636144009, 237588086736009, 2375880867360010, 49893498214560010, 548828480360160011, 12623055048283680011, 151476660579404160012 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
The maximum number of distinct cards in a deck that has each card twice to perform the n-card trick, where the audience chooses the hidden card.
LINKS
Michael Kleber and Ravi Vakil, The best card trick, The Mathematical Intelligencer 24 (2002), 9-11.
EXAMPLE
Consider a five-card trick, where the assistant gets four cards from a deck and is told which card to hide. Moreover, the deck has a duplicate of each card. In the worst case scenario, the assistant gets two duplicates and has to hide the other card. There are six different ways to arrange two pairs of cards. Thus, the assistant can signal a number 1 through 6. The hidden card can't take a value of the cards on the table, so the maximum number of distinct values is 8. Thus a(5) = 8.
MATHEMATICA
Table[(K - 1) !/(2^Floor[(K - 1)/2]) + Floor[(K - 1)/2], {K, 1, 25}]
CROSSREFS
Sequence in context: A194810 A271216 A102000 * A165904 A192008 A298989
KEYWORD
nonn
AUTHOR
Tanya Khovanova and the MIT PRIMES STEP junior group, Apr 24 2024
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 25 21:12 EDT 2024. Contains 373712 sequences. (Running on oeis4.)