Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n)

Cartridge M1 • Non-Sequentially Revertible via hs-math-docs --disable base36-algebra-and-primes • v2.8.0

Prerequisite Track for Novices • Required Expertise: Level 2: Elementary Number Theory & Base Systems (8-12 hrs study)

If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:

Core Mathematical Prerequisites:
  • Positional numeral systems and non-decimal radices (Base-10 vs. Base-36)
  • Fundamental Theorem of Arithmetic (111 = 3 × 37) and prime-counting function π(n)
  • Additive string homomorphisms AQ(u · v) = AQ(u) + AQ(v) over character monoids
Curated Free Public Study Resources:
λ Polyglot Foil (M1): Base-36 Semiring Valuation, Mod-9 Root & Prime Factorization
1. Mathematical Identity & Python:666 = 2 × 3² × 37, 777 = 3 × 7 × 37, dr_9(n) = 1 + ((n - 1) mod 9)
compute_aq('envideea') == 137  # 33rd prime
λ Guile Scheme (Z-Combinator):
(prime-factors 666)
=> [Select Lens to evaluate]
TS TypeScript (Strict AST):
primeFactors(666)
=> [Select Lens to evaluate]
Rs Rust (Option/Iterator AST):
prime_factors(666_u64)
=> [Select Lens to evaluate]
Guided Micro-Challenge (4-Ring Zero-Escape Sandbox): Factor 666 or 777 across Guile Scheme, TypeScript, and Rust in the 4-Ring Hardened REPL.

1. The Base-36 Alphanumeric Homomorphism v: {0..9, A..Z} → {0..35}

For any character c, v(c) = ord(c) - 48 for digits '0'..'9' (0..9), v(c) = ord(lower(c)) - 87 for ASCII letters 'A'..'Z' (10..35), and v(c) = 0 otherwise. Extended over a string w = c_1...c_k, AQ(w) = ∑_{i=1}^k v(c_i). Under concatenation, AQ(w_1 · w_2) = AQ(w_1) + AQ(w_2).

2. Repdigit 37 × 3k Attractors & Prime Index π(n)

Three-digit repdigits R_k = 111 · k = 3 · 37 · k ∈ {111, 222, 333, 444, 555, 666, 777, 888, 999} factor through the prime 37 (12th prime) and 3. For prime coordinates p ∈ P, prime_rank(p) = π(p) = |{q ∈ P : q ≤ p}| (e.g., π(137) = 33 for 'envideea' = 137; π(193) = 44 for 'anthropik' = 'flash krash' = 193).

← Back to Math Hub (M0) Next: M2: Phonemic Φ & G1-G6 →