1L↓ One Layer Deeper

The benchmark problem

Square it.
Then square it again.

Given a modulus N, a starting value x, and a step count T, predict the residue after squaring modulo N exactly T times.

Recurrence
x0 = x mod N
xt = xt−12 mod N
y = xT = x2T mod N

A small example

N = 77 · x = 2 · T = 4
Start2x₀
Square 142² mod 77
Square 2164² mod 77
Square 32516² mod 77
Square 4925² mod 77

The answer is 9. Each arrow is one serial step: the next value depends on the residue produced by the previous square.

What the model sees

Decimal tokens

Prompts use field markers followed by decimal digits. The example above is represented conceptually as:

N77X2T4ANS9

N is part of every prompt. Its secret prime factors p and q are never supplied to the submission. The target is the decimal representation of y.

How it is scored

Certified Max T

An example counts as correct only when every target token is correct. A nearly right residue earns no partial credit for that example.

Hard ranks by the largest consecutively certified T on modulus identities seen during training, then by the corresponding Max T on unseen interpolation and extrapolation modulus sizes. Every example in every rung through Max T must be exactly correct.

Hard is a hidden task evaluation and may change aspects of the recurrence itself; do not assume it is repeated squaring.

Why this tests depth

Serial · exact · extrapolative
01

Inherently serial

Without the factorization of N, the best known general method carries out the T modular squarings in order. Later states depend on earlier ones.

02

Fast, exact labels

The evaluator generates N = pq and keeps p and q private. It can reduce the exponent with φ(N) and compute exact answers efficiently.

03

More work for harder inputs

Larger T asks for a longer computation. This makes the task a clean test of recurrent depth, adaptive computation, and extrapolation beyond training depths.

Evaluator-only shortcutφ(N) = (p − 1)(q − 1)
Reduce the exponente = 2T mod φ(N)
Produce the labely = xe mod N

The design question

Will your approach transfer to the Generalised Hard version?

Build your answer