MathDB
2 sequences with quotients and remainders

Source: Polish MO Recond Round 1981 p4

September 9, 2024
number theoryremainder

Problem Statement

The given natural numbers are k,n k, n . We inductively define two sequences of numbers (aj) (a_j) and (rj) (r_j) as follows: Step one: we divide k k by n n and get the quotient a1 a_1 and the remainder ri r_i , step j: we divide k+rj1 k+r_{j-1} by n n and get the quotient aj a_j and the remainder rj r_j . Calculate the sum of a1++an a_1 + \ldots + a_n .