MathDB
n= ax + by iff n, f(n) = n - n_a - n_b, f(f(n)),.. \in N

Source: JBMO Shortlist 2007 N4

October 14, 2017
JBMOnumber theoryremainder

Problem Statement

Let a,ba, b be two co-prime positive integers. A number is called good if it can be written in the form ax+byax + by for non-negative integers x,yx, y. Defi ne the function f:ZZf : Z\to Z as f(n)=nnanbf(n) = n - n_a - n_b, where sts_t represents the remainder of ss upon division by tt. Show that an integer nn is good if and only if the in finite sequence n,f(n),f(f(n)),...n, f(n), f(f(n)), ... contains only non-negative integers.