Night shift / No. 01 Triangular numbers

CRASH TEST.

The missing square.

Two staircases fill a rectangle. Change one digit in the loop that counts them.

remaining > 0n
Construction
8

The claim · S(n) is the loop’s return

Twice the loop result equals n times n plus one.

One staircase

Double the staircase and turn its copy.

36

Pud on duty at the lamp-lit proof desk.

Night shift log

Pud checks this TypeScript loop with Lean. Its proof covers every nonnegative bigint, including zero.

Read the proof ↗