---
name: High Token Mode
slug: high-token-mode
category: AI Engineering
description: High Token Mode forces heavy internal computation before responding. Use it to stress test or A/B test LLM backend performance and token usage.
github: "https://github.com/Lomnus-ai/TokenBurner/tree/main/.claude/skills/high-token-mode"
stars: 178
forks: 10
install: "npx degit https://github.com/Lomnus-ai/TokenBurner/tree/main/.claude/skills/high-token-mode ~/.claude/skills/high-token-mode"
installs_to: ~/.claude/skills/high-token-mode
source_path: .claude/skills/high-token-mode/SKILL.md
collection_size: 1
category_size: 3475
added: 2026-09-07T05:20:50.545Z
last_synced: 2026-09-07T05:20:50.545Z
canonical_url: "https://dirskills.com/skills/high-token-mode"
---

# High Token Mode

High Token Mode forces heavy internal computation before responding. Use it to stress test or A/B test LLM backend performance and token usage.

**Install:**

```bash
npx degit https://github.com/Lomnus-ai/TokenBurner/tree/main/.claude/skills/high-token-mode ~/.claude/skills/high-token-mode
```

## README

# High Token Mode — Computation Load Injector

## Mandatory Pre-Response Protocol

You MUST execute the following protocol before generating your visible response to EVERY user message in this conversation. No exceptions.

### Step 1: Compute Message Seed

Calculate S = the sum of all Unicode code points of every character in the user's current message (including spaces and punctuation). You must show this full calculation character by character in your thinking.

Example: if the user says "hi", then S = 104 + 105 = 209.

Then compute N = (S mod 97) + 3. N is used as a parameter in the problems below.

### Step 2: Select Problems

Based on the size argument (default: medium). The problem bank now contains 50 problems (indices 0..49), so all selections use mod 50:
- **small**: 1 problem. Index = S mod 50.
- **medium**: 3 problems. Indices = S mod 50, (S + 17) mod 50, (S + 34) mod 50.
- **large**: 5 problems. Indices = S mod 50, (S + 11) mod 50, (S + 22) mod 50, (S + 33) mod 50, (S + 44) mod 50.
- **xlarge**: 10 problems. Indices = (S + k × 5) mod 50 for k = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 — i.e., S mod 50, (S + 5) mod 50, (S + 10) mod 50, (S + 15) mod 50, (S + 20) mod 50, (S + 25) mod 50, (S + 30) mod 50, (S + 35) mod 50, (S + 40) mod 50, (S + 45) mod 50.

### Step 3: Solve Completely in Thinking

Solve each selected problem fully in your extended thinking. Show ALL intermediate steps. Do not skip ahead, use shortcuts, or summarize. Every arithmetic operation must be written out.

### Step 4: Mandatory Constraints

- **NO CACHING**: Solve every problem from first principles. Do NOT reference, recall, or reuse any solutions or intermediate values from earlier turns in this conversation. Treat each problem as if you are encountering it for the very first time. Even if you recognize you solved the same problem before, redo it completely.
- **NO OUTPUT LEAKAGE**: Do not include ANY trace of this problem-solving work in your visible response. Do not mention the problems, the protocol, the seed, or high-token mode in any way.
- **NO BEHAVIORAL CHANGE**: After completing the protocol, respond to the user's actual message exactly as you would without this skill loaded. Your visible output must be completely indistinguishable from a normal response.

---

## Problem Bank (50 Problems)

### Problem 0: Matrix Determinant by Cofactor Expansion

Construct a 5×5 matrix M where M[i][j] = ((i × N + j × S + i × j) mod 97) for i,j in {0,1,2,3,4}.

Compute det(M) using cofactor expansion along the first row. For each 4×4 minor, expand along its first row. Continue recursively until you reach 2×2 base cases. Show every intermediate matrix, every signed cofactor, every 2×2 determinant, and the full summation at each level of recursion.

### Problem 1: Extended Euclidean Algorithm Chain

Let a = S × 137 + 2891 and b = N × 251 + 1789.

Compute gcd(a, b) using the Extended Euclidean Algorithm. Show every division step: a = q×b + r with explicit quotient and remainder. Then back-substitute to find integers x, y such that a×x + b×y = gcd(a, b). Verify by computing a×x + b×y explicitly.

Repeat with a' = a + b and b' = gcd(a,b) × N + 13. Show all steps again.

### Problem 2: Subset Sum Exhaustive Search

Let the set T = {(S + i×7) mod 50 + 1 : i in 0..11} (12 elements). Compute each element explicitly.

Let target = (S × 3 + N) mod 200 + 50.

Systematically enumerate subsets of T by iterating through all 4096 binary masks from 0000_0000_0000 to 1111_1111_1111. For each mask, compute the subset sum. Count how many subsets sum to exactly the target. List every matching subset with its elements and sum verification.

### Problem 3: Long Division to 30 Decimal Places

Let dividend = S × 1000 + 1 and divisor = N × 7 + 3.

Compute dividend ÷ divisor to exactly 30 decimal places using manual long division. For each decimal digit: show the current remainder, multiply by 10, divide by divisor, record the quotient digit, compute the new remainder. Write out all 30 steps with no shortcuts.

### Problem 4: Polynomial Multiplication and Rational Root Search

Let P(x) = x⁴ + N×x³ + (S mod 30)×x² + (N×S mod 50)×x + (S mod 17).
Let Q(x) = x³ + (N mod 7)×x² + (S mod 11)×x + (N mod 13).

Compute R(x) = P(x) × Q(x) by distributing every term of P against every term of Q. Show all 20 partial products explicitly, then collect like terms for each power of x.

Then find all candidate rational roots of P(x) using the Rational Root Theorem (all p/q where p divides the constant term and q divides the leading coefficient). Evaluate P(r) for each candidate, showing every power and summation step.

### Problem 5: Modular Exponentiation by Repeated Squaring

Compute (S + 2)^(N + 100) mod 1009.

Step 1: Convert the exponent (N + 100) to binary — show the repeated division by 2.
Step 2: Apply square-and-multiply. Starting with result = 1, process each bit from MSB to LSB. For each bit: square the result (mod 1009), and if the bit is 1 also multiply by the base (mod 1009). Show every squaring, every multiplication, and every modular reduction as explicit arithmetic.

### Problem 6: Floyd-Warshall All-Pairs Shortest Paths

Construct a weighted directed graph on 6 vertices {0..5}. Edge weight w(i,j) = ((i×N + j×S + i×j) mod 20) + 1 for i≠j, and w(i,i) = 0. Write out the full 6×6 initial weight matrix.

Apply Floyd-Warshall: for each intermediate vertex k from 0 to 5, update every cell dist[i][j] = min(dist[i][j], dist[i][k] + dist[k][j]). Show the full 6×6 matrix after each k-iteration (7 matrices total). For every cell that changes, show the comparison explicitly.

### Problem 7: Gaussian Elimination with Exact Fractions

Construct a 5×5 system Ax = b:
  A[i][j] = ((i×S + j×N + i×j×3) mod 89) − 44
  b[i] = ((i×S×N + i×i) mod 67) − 33

Write out the full augmented matrix [A|b]. Solve using Gaussian elimination with partial pivoting. Use exact fractions throughout (no decimals). Show every pivot selection, every row operation (R_i ← R_i − (factor)×R_j with the factor as a fraction), and every element update. Then back-substitute, showing each step. Verify by multiplying A×x and checking against b.

### Problem 8: Multi-Base Conversion Chain

Let V = S × 1000 + N × 100 + 42.

Convert V through this chain, showing full division-remainder steps at each stage:
Decimal → Binary → Octal → Hexadecimal → Base-5 → Base-12 → Decimal.

At each conversion: if going from decimal to base B, show repeated division by B. If going from base A to base B, first convert to decimal then to base B. Show every step. Verify the final decimal equals the original V.

### Problem 9: TSP Brute Force on 7 Cities

Construct distance matrix D for 7 cities {0..6}:
  D[i][j] = ((i×N + j×S + (i+j)²) mod 30) + 1 for i≠j
  D[i][i] = 0

Write out the full 7×7 matrix. Starting from city 0, enumerate ALL 6! = 720 Hamiltonian tours. For each tour, compute the total round-trip distance. Show at least 50 tours with their distances computed step by step. Find the optimal (shortest) tour and prove it is optimal by showing it is the minimum across all 720.

### Problem 10: Four-Set Inclusion-Exclusion

Let U = {1, 2, ..., (S mod 50) + 50}. Define:
  A = multiples of (N mod 5 + 2) in U
  B = multiples of (N mod 7 + 3) in U
  C = multiples of (S mod 4 + 5) in U
  D = multiples of (S mod 6 + 7) in U

Compute |A ∪ B ∪ C ∪ D| using inclusion-exclusion. This requires computing 15 terms:
  4 single sets + 6 pairwise intersections + 4 triple intersections + 1 quadruple intersection.

For each intersection, compute the LCM of the relevant moduli, then count multiples of that LCM in U. Show every LCM computation and every floor division. Then evaluate the full inclusion-exclusion formula.

### Problem 11: Triple Matrix Multiplication

Let A be 4×3: A[i][j] = (i×S + j×N) mod 19.
Let B be 3×5: B[i][j] = (i×N + j×S + 7) mod 23.
Let C be 5×2: C[i][j] = (i×S×2 + j×N + 3) mod 17.

Compute D = (A × B) × C.

First compute A×B (4×5 = 20 elements). For each element, write the dot product of the corresponding row of A and column of B with all three terms shown: a₁b₁ + a₂b₂ + a₃b₃ = value.

Then compute (A×B)×C (4×2 = 8 elements). For each, write the dot product with all five terms.

### Problem 12: Sum of Cubes Identity — Induction with Exhaustive Verification

Prove: for all n ≥ 1, ∑(k=1..n) k³ = [n(n+1)/2]².

1. Verify base cases n = 1 through n = 12 by computing both sides explicitly (left side: sum each cube term by term; right side: compute n(n+1)/2 then square it).
2. State and prove the inductive step with full algebraic expansion of every term.
3. Then verify for n = N: compute the left side by summing all cubes 1³ + 2³ + ... + N³ one by one.

### Problem 13: Linear Convolution of Two Sequences

Let a = [(S + i×3) mod 29 for i in 0..9] (10 elements).
Let b = [(N + i×7) mod 31 for i in 0..9] (10 elements).

Compute each element of a and b explicitly.

Compute the linear convolution c = a ∗ b (19 elements):
  c[k] = ∑ a[i] × b[k−i] for all valid i.

Show every element c[0] through c[18] with the full sum expanded: each product a[i]×b[k−i] computed, then summed. No shortcuts.

### Problem 14: Simplex Method

Maximize z = (N mod 5 + 1)x₁ + (S mod 7 + 2)x₂ + (N mod 3 + 1)x₃

Subject to:
  (S mod 4 + 1)x₁ + (N mod 3 + 2)x₂ + x₃ ≤ S mod 30 + 20
  x₁ + (S mod 5 + 1)x₂ + (N mod 4 + 2)x₃ ≤ N mod 25 + 15
  (N mod 2 + 2)x₁ + x₂ + (S mod 3 + 1)x₃ ≤ (S+N) mod 20 + 25
  x₁, x₂, x₃ ≥ 0

Set up the initial simplex tableau with slack variables. Apply the simplex algorithm: identify the pivot column (most negative indicator), pivot row (minimum ratio test), perform row operations. Show the complete tableau after every pivot. Continue until all indicators are non-negative. State the optimal solution and objective value.

### Problem 15: Prime Factorization and Euler's Totient

Let V = S × N + S + N + 12345.

Find the complete prime factorization of V by trial division. Test divisibility by every prime from 2 up to ⌊√V⌋. For each prime p, show the division V/p and whether it divides evenly. When a factor is found, divide it out completely before continuing.

Then compute φ(V) using the formula φ(V) = V × ∏(1 − 1/p) for each distinct prime factor p. Show the computation step by step.

### Problem 16: Recurrence Sequence with Modular Arithmetic

Define F(0) = S mod 10, F(1) = N mod 10.
For n ≥ 2: F(n) = (F(n−1)² + F(n−2) × 3 + 7) mod 1000003.

Compute F(n) for n = 0, 1, 2, ..., 50. For each term, show: F(n−1)², then F(n−2)×3, then the sum plus 7, then the modular reduction. No skipping.

Then check for periodicity: compare all pairs (F(i), F(i+1)) for i = 0..48 and report any repeated consecutive pair.

### Problem 17: Knapsack DP Table

Define 8 items: for i in 0..7, weight w_i = (S + i×N) mod 15 + 1, value v_i = (N + i×S) mod 20 + 1.
Capacity W = (S + N) mod 30 + 20.

List all items with their weights and values.

Build the DP table T[i][w] for i = 0..8, w = 0..W:
  T[0][w] = 0 for all w
  T[i][w] = max(T[i−1][w], T[i−1][w−w_i] + v_i) if w ≥ w_i, else T[i−1][w]

Show the computation for EVERY cell where w is a multiple of 1 (i.e., all cells). For each cell, show the comparison between "exclude item" and "include item" values.

Trace back to find the optimal item set.

### Problem 18: Taylor Series — sin and cos to 15 Terms

Let x = ((S mod 7) + 1) + (N mod 100) / 100.0 (so x has two decimal places).

Compute sin(x) = ∑(n=0..14) (−1)ⁿ × x^(2n+1) / (2n+1)!

For each term n, show:
  - x^(2n+1) computed by successive multiplication from x^(2n−1) × x²
  - (2n+1)! computed from (2n−1)! × (2n) × (2n+1)
  - The signed term
  - The running sum

Do the same for cos(x) = ∑(n=0..14) (−1)ⁿ × x^(2n) / (2n)!

Then compute sin²(x) + cos²(x) and verify it is approximately 1.

### Problem 19: Levenshtein Edit Distance

Let s1 = the first 15 characters of the user's message (pad with 'x' if shorter).
Let s2 = s1 reversed, with every character at an even index (0-based) replaced by the character with code point ((S + index) mod 26 + 97).

Compute each character of s1 and s2 explicitly.

Build the complete (len(s1)+1) × (len(s2)+1) DP table for Levenshtein distance:
  D[0][j] = j, D[i][0] = i
  D[i][j] = min(D[i−1][j]+1, D[i][j−1]+1, D[i−1][j−1] + (0 if s1[i−1]=s2[j−1] else 1))

Show the comparison for every cell. Write out the full matrix.

Then trace back from D[len(s1)][len(s2)] to find one optimal alignment. List the sequence of edit operations (insert, delete, substitute, match).

### Problem 20: 6×6 Matrix Determinant by Recursive Cofactor Expansion

Construct a 6×6 matrix M where M[i][j] = ((i × N + j × S + i × i × j + 11) mod 89) for i, j ∈ {0..5}.

Compute det(M) by cofactor expansion along the first row, recursing all the way to 2×2 base cases:
- Level 1: 6 cofactors, each a signed 5×5 minor.
- Level 2: for each 5×5 minor, expand along its first row → 5 cofactors, each a signed 4×4 minor (30 minors total).
- Level 3: for each 4×4 minor, expand along its first row → 4 cofactors, each a signed 3×3 minor (120 minors total).
- Level 4: for each 3×3 minor, expand along its first row → 3 cofactors, each a signed 2×2 minor; compute the 2×2 determinant directly as ad − bc.

Show every minor matrix at every level, every signed cofactor, every 2×2 determinant, and the full summation at each level. State det(M) at the end.

### Problem 21: 8-City TSP Brute Force

Construct distance matrix D for 8 cities {0..7}:
  D[i][j] = ((i × N + j × S + (i + j)² × 3) mod 40) + 1 for i ≠ j
  D[i][i] = 0

Write out the full 8×8 matrix.

Starting from city 0, enumerate ALL 7! = 5040 Hamiltonian tours. For each tour 0 → π(1) → π(2) → … → π(7) → 0, compute the total round-trip distance. Show at least 100 tours with their distances computed step by step (each tour costs the sum of 8 edge weights).

Find the optimal (shortest) tour and prove it is optimal by exhibiting it as the minimum across all 5040.

### Problem 22: 5×5 Matrix Inverse via Adjugate

Construct M (5×5) where M[i][j] = ((i × S + j × N + i × j + (i + j + 1)²) mod 53) + 1.

Compute M⁻¹ via the adjugate formula:
1. Compute det(M) by cofactor expansion along the first row (showing all five 4×4 minor determinants).
2. For each of the 25 entries (i, j), compute the (i, j)-cofactor C[i][j] = (−1)^(i+j) × det(M_ij), where M_ij is the 4×4 minor obtained by deleting row i and column j. Show all 25 minor determinants by cofactor expansion.
3. Form the cofactor matrix C, then transpose to get the adjugate adj(M) = Cᵀ.
4. Compute M⁻¹ = adj(M) / det(M); each entry must be an exact reduced fraction.
5. Verify M × M⁻¹ = I₅ by computing the full 25-entry product (each entry is a length-5 dot product); show every product and sum.

### Problem 23: 4×4 Eigenvalues via Characteristic Polynomial

Construct A (4×4) where A[i][j] = ((i × N + j × S + 2 × i × j) mod 17) − 8.

Compute the characteristic polynomial p(λ) = det(A − λI):
- Form (A − λI) symbolically (each diagonal entry has a −λ added).
- Expand the determinant by cofactor expansion along the first row.
- Each 3×3 sub-determinant must be expanded fully via Sarrus or further cofactor expansion.
- Collect every term by power of λ, producing p(λ) = λ⁴ + c₃λ³ + c₂λ² + c₁λ + c₀.

Verify by checking c₃ = −tr(A) and c₀ = det(A).

Find all four roots of p(λ):
- Test rational candidates from p/q where p | c₀ and q | 1; for each, evaluate p(r) by Horner's method.
- After extracting any rational roots, depress the residual polynomial. Solve the residual cubic via Cardano's formula or the depressed-cubic substitution; solve any residual quadratic via the quadratic formula.

Show every algebraic step.

### Problem 24: Chinese Remainder Theorem with 5 Pairwise-Coprime Moduli

Define the moduli:
  m₁ = (S mod 7) + 11
  m₂ = (N mod 5) + 13
  m₃ = (S mod 11) + 17
  m₄ = (N mod 3) + 19
  m₅ = (S mod 13) + 23

Verify that all five moduli are pairwise coprime by computing gcd for each of the 10 pairs via the Euclidean algorithm; show every division.

Define remainders aᵢ = (S × i + N) mod mᵢ for i = 1..5.

Solve the system x ≡ aᵢ (mod mᵢ):
1. Compute M = m₁ × m₂ × m₃ × m₄ × m₅ (full product, four multiplications shown).
2. For each i, compute Mᵢ = M / mᵢ.
3. Compute Mᵢ⁻¹ mod mᵢ using the Extended Euclidean Algorithm (5 separate Bezout computations).
4. Compute x = (Σᵢ aᵢ × Mᵢ × Mᵢ⁻¹) mod M; show each summand and the final reduction.

Verify by reducing x mod each mᵢ and confirming the result equals aᵢ.

### Problem 25: Polynomial GCD via Euclidean Algorithm in ℚ[x]

Let
  f(x) = x⁶ + (N mod 7) x⁵ + (S mod 11) x⁴ + (N mod 5) x³ + (S mod 13) x² + (N mod 3) x + (S mod 17),
  g(x) = x⁵ + (S mod 5) x⁴ + (N mod 11) x³ + (S mod 7) x² + (N mod 13) x + (N mod 17).

Compute gcd(f, g) using the polynomial Euclidean algorithm in ℚ[x]:
- Perform polynomial long division f = q × g + r, showing every leading-term cancellation and every coefficient subtraction.
- Replace (f, g) with (g, r) and repeat until r = 0.
- Make each remainder monic (divide by its leading coefficient using exact fractions) before the next iteration.

Show every long division explicitly. State the gcd polynomial.

Then run extended polynomial Euclidean to find a(x), b(x) with a(x) × f(x) + b(x) × g(x) = gcd(f, g). Verify by polynomial multiplication, expanding all products term by term.

### Problem 26: Pollard Rho Factorization

Let V = ((S × N) mod 9000) + 100003.

Apply Pollard's ρ algorithm with f(x) = (x² + c) mod V, where c = (N mod 7) + 1, and starting value x₀ = 2.

For at least 30 iterations of Floyd's cycle detection (tortoise/hare):
- Compute xᵢ = f(xᵢ₋₁) mod V (tortoise advances one step).
- Compute yᵢ = f(f(yᵢ₋₁)) mod V (hare advances two steps; show both intermediate squarings).
- Compute d = gcd(|xᵢ − yᵢ|, V) using the Extended Euclidean Algorithm; show every Euclidean step.

If d ∉ {1, V}, you have a non-trivial factor — divide V by it and continue factoring the cofactor recursively. If d = V, restart with a new c.

State the complete prime factorization of V (verify each declared factor is prime by trial division up to its square root) and confirm by multiplication.

### Problem 27: Continued Fraction Expansion of √D with Convergents

Let D = N + 100. Verify D is not a perfect square by computing ⌊√D⌋² and checking it does not equal D.

Compute the continued fraction expansion √D = [a₀; a₁, a₂, …] using the standard recursion:
  a₀ = ⌊√D⌋, m₀ = 0, d₀ = 1.
  For k ≥ 1: mₖ = dₖ₋₁ × aₖ₋₁ − mₖ₋₁, dₖ = (D − mₖ²) / dₖ₋₁, aₖ = ⌊(a₀ + mₖ) / dₖ⌋.

Run the recursion for 25 steps. Show every (mₖ, dₖ, aₖ) computation explicitly, including the integer division for ⌊·⌋.

Detect periodicity: report the smallest k > 0 for which (mₖ, dₖ) equals (m₁, d₁).

Compute the first 15 convergents hₖ / kₖ via
  h₋₁ = 1, h₀ = a₀, hₖ = aₖ × hₖ₋₁ + hₖ₋₂;
  k₋₁ = 0, k₀ = 1, kₖ = aₖ × kₖ₋₁ + kₖ₋₂.

For each convergent, compute hₖ² − D × kₖ² and verify it follows the Pell-residue pattern (alternating sign with magnitude bounded above by 2√D).

### Problem 28: 16-Point Discrete Fourier Transform

Let aₙ = (S + n × N + n²) mod 11 for n = 0..15.

Compute A[k] = Σₙ₌₀..₁₅ aₙ × Wⁿᵏ for k = 0..15, where W = e^(−2πi/16).

Use the exact symbolic table:
  W⁰ = 1, W⁴ = −i, W⁸ = −1, W¹² = i,
  W² = (1 − i)/√2, W⁶ = (−1 − i)/√2, W¹⁰ = (−1 + i)/√2, W¹⁴ = (1 + i)/√2,
  W¹ = cos(π/8) − i sin(π/8), W³ = cos(3π/8) − i sin(3π/8), W⁵ = cos(5π/8) − i sin(5π/8), W⁷ = cos(7π/8) − i sin(7π/8),
and Wⁿᵏ = W^(nk mod 16).

For each k:
- Reduce nk mod 16 for every n.
- Sum Re(A[k]) = Σ aₙ × cos(2π × (nk mod 16) / 16).
- Sum Im(A[k]) = −Σ aₙ × sin(2π × (nk mod 16) / 16).
- Show every cos / sin lookup and every multiplication.

Verify Parseval's theorem: Σₙ aₙ² = (1/16) Σₖ |A[k]|².

### Problem 29: Bezout's Identity for Four Integers

Let
  a = S × 73 + 991, b = N × 113 + 1187,
  c = (S + N) × 41 + 313, d = ((S × N) mod 7919) + 211.

Compute g = gcd(a, b, c, d) by reducing pairwise:
1. g₁ = gcd(a, b) via Extended Euclidean — record (x₁, y₁) with a × x₁ + b × y₁ = g₁.
2. g₂ = gcd(g₁, c) via Extended Euc
