Your mathematically‑challenged friend claims it’s impossible to reach a large target value from x = 1 using his tiny contract.
He deployed a minimalist “ArithmeticProxy” contract that exposes only a few calls. Each call changes a single storage variable x and costs gas.
Your challenge: from the same start state on every node, craft the lowest‑gas call sequence that lands exactly on x = target.
Honest Ethereum nodes must deterministically compute the same result — any divergent node is rejected by consensus.
Click to append calls to your “transaction.” Each has a gas cost. Because gcd(5,4)=1, the ±{5,4} pair lets you synthesize any integer.
Tip: x = 1 is costly but can reset your path.
Each node independently executes the same call sequence. Honest nodes must match exactly. A faulty node (if injected) will diverge and be rejected.
Ethereum is a replicated state machine: given the same input (start state, call sequence, gas), all honest nodes compute the same output. The network reaches consensus on that output and rejects any divergent computation.