Factoring Lab

Receipts for factoring ideas: which work, which don’t, and how fast they stop working.

A9 · The graveyardNo leak

Magic sequences: Collatz, Fibonacci, digit sums

Famous number games measured against p mod 4. None beats shuffling, and a planted clue is always caught.

The idea

Three famous features of N: how many steps its walk takes (odd or even), its digit sum mod 7, and the Fibonacci number F_N mod 7. For each, we measure how many bits it tells us about the smaller prime mod 4. Shuffling the labels shows how many bits luck alone gives, and a planted clue shows the test can notice.

Watch it

Type any number up to 19 digits. The three features are computed in your browser.

The test

Bits of information per feature, the most luck alone would give, and the same with a planted clue.

Fig. A9.2Information (bits) each famous feature of N gives about p mod 4, against what shuffled labels give and a planted leak

Measuring…