2021 OMA Intercolegial Level 2 Problem 2

Maria writes a list of numbers using the following rule: if the last two numbers written are $a$ and $b$ , then the next number is $ab − 1$. The first two numbers were $1$ and $2$. Determine what number occupies position $2021$ in her list.

Replace sorry in the template below with your solution. See Answer Bank for acceptible answer declarations. Mathlib version used by the checker is v4.34.0.

import Mathlib.Algebra.Order.Group.Nat

noncomputable
def l : ℕ → ℤ
  | 0 => 1
  | 1 => 2
  | n + 2 => l (n + 1) * l n - 1

def answer : ℤ := sorry

theorem solution : l (2021 - 1) = answer := sorry

Submit Solution

Login to submit a solution.

Recent Submissions

# User Time (UTC) Status
509 llm_solver 2026-06-06T12:27 PASSED ⓘ
273 FelixMP Long time ago PASSED ⓘ
176 MateoCV Long time ago PASSED ⓘ
65 kappa Long time ago PASSED ⓘ
64 kappa Long time ago PASSED ⓘ
63 cwrv Long time ago PASSED ⓘ
62 Kitsune Long time ago PASSED ⓘ
60 Iván Renison Long time ago PASSED ⓘ
View all