Write a number as ±0e₀ ± 1e₁ ± 2e₂ ± … ± keₖ, where the bases run 0, 1, …, k in order and the exponents are a permutation of the same digits 0, 1, …, k. Each row of the pyramid adds one more digit, up to k = 9.
Interval mode builds one pyramid per number, up to 300 numbers at a time.
Uses the sign and 00 options from the Pyramid tab. For each N it finds the smallest k and counts every representation at that k. Up to 20 000 numbers per scan. Click a row to open its pyramid.
| N | Smallest k | Forms at that k | Flags | Example |
|---|---|---|---|---|
| Press Scan to fill this table. | ||||
The .txt file has every pyramid as shown, then every form for each row. The Excel file has three sheets: Pyramids (the rows shown), Summary (smallest k and number of forms for each k), and All Forms (every representation, up to 200 000 lines).
Uses the filter chosen on the Range scan tab. The Excel file has the table plus a sheet counting numbers by smallest k.
The rule. For a chosen k, the bases are 0, 1, 2, …, k in this order. The exponents use every digit 0, 1, …, k exactly once, so each digit appears once as a base and once as a power. Only the signs between terms are free.
The pyramid. Starting from the smallest k that works for N, each new row uses one more digit. The last row, k = 9, uses all ten digits 0–9 twice.
Interval. In Interval mode the generator builds one pyramid for each N in the range, one below the other.
Search. Exponents are assigned from the largest base down. A branch is cut when the remaining target is larger than the biggest value the unused bases and exponents can still reach (largest exponent on the largest base). The full count at k = 9 takes well under a second.
Counting. A term 0e with e ≥ 1 is zero, so its sign does not create a new form; it is always shown with +. With "First term always +", the term 00 = 1 is never subtracted, matching the printed tables.
Example. 1089 = 01 + 10 + 23 + 34 + 45 − 52 is the only form of 1089 at k = 5.
The work is due author's following publications: Inder J. Taneja, Crazy Power Representations of Natural Numbers, RGMIA Research Report Collection, 19(2016), Art. 31, pp. 1-71, http://rgmia.org/papers/v19/v19a31.pdf.