On Wed, 24 Oct 2012, Herman Rubin wrote:
> On 2012-10-24, William Elliot <
ma...@panix.com> wrote:
> > On Tue, 23 Oct 2012, PT wrote:
>
> >> g(n) is a function of any integer n, positive or negative, which
> >> produces an integer value, with conditions:
>
> >> a) g(g(n)) = n
> >> b) g(g(n + 2) + 2) = n
> >> c) g(0) = 1
>
> > Let f(n) = 1 - n.
>
> > ff(n) = f(1 - n) = 1 - (1 - n) = n
> > f(f(n + 2) + 2) = f(1 - (n + 2) + 2) = f(1 - n) = n
> > f(0) = 1
>
> >> 1. Determine g(n)
> > g = f.
>
> >> 2. Prove your solution is unique.
>
> From (a), g(g(g(n))) = g(n), so g is 1-1.