Tagged articles
2 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Feb 25, 2024 · Fundamentals

Unveiling Liu Qian’s Final Magic Trick: The Hidden Josephus Puzzle

The article explains Liu Qian’s last magic performance by modeling the card shuffling as a periodic ABCD pattern, interpreting it through group theory, and ultimately solving the underlying Josephus problem with a binary‑based formula that predicts the surviving card.

Josephus problembinary representationcombinatorics
0 likes · 10 min read
Unveiling Liu Qian’s Final Magic Trick: The Hidden Josephus Puzzle
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 21, 2024 · Backend Development

Recreating the Spring Festival Gala Magic Trick Using Go

This article walks through a step‑by‑step Go implementation of the popular Spring Festival Gala magic trick, explaining the underlying Josephus‑style algorithm, showing each transformation of a slice of cards with complete code snippets, and demonstrating how the final single card matches the hidden one.

GoJosephus problemMagic Trick
0 likes · 9 min read
Recreating the Spring Festival Gala Magic Trick Using Go