The factorial number system (for Erdős #403) #
The unique mixed-radix representation n = ∑_{i≥1} dᵢ·i! with 0 ≤ dᵢ ≤ i, where
dᵢ = (n / i!) mod (i+1). A number is a sum of distinct factorials (indices ≥ 1) iff every
digit is ≤ 1. This is the engine for the sharp form m ≤ 7 of #403: the question becomes a
digit condition on 2^m.
This file builds the infrastructure the sharp endgame needs:
factDigit, thei-th factorial-base digit,factDigit_sum_factorial: the digits of a sum of distinct factorials are its indicator,not_factSum_of_digits: the non-representability criterionErdos403.Sharpcalls on2^m.
(The general reconstruction lemmas n = ∑ dᵢ·i!, unused by the final proof, live in
Erdos403.Superseded.)
The i-th factorial-base digit of n: dᵢ(n) = ⌊n / i!⌋ mod (i+1).
Instances For
The digits of a sum of distinct factorials are its indicators. For T a finite set of
positive integers, d_i(∑_{a∈T} a!) = [i ∈ T] ∈ {0,1}. (The "representable ⟹ all digits ≤ 1"
direction, with the exact value.)
The 0! bridge. Since 0! = 1!, allowing index 0 adds at most one unit. So if n is a
sum of distinct factorials (n = factSum S, indices ≥ 0), then either n or n - 1 has all
factorial digits ≤ 1 (the latter when 0 ∈ S, peeling 0! = 1).
Non-representability criterion. If both n and n - 1 carry a factorial digit ≥ 2
(at a positive index), then n is not a sum of distinct factorials: no S has factSum S = n.
This is the interface the sharp endgame calls on n = 2^m.