Source: Junior Olympiad of Malaysia Shortlist 2015 C3
July 17, 2015
functioncombinatorics
Problem Statement
Let n≥2 be a positive integer and S={1,2,⋯,n}. Let two functions f:S→{1,−1} and g:S→S satisfy:i) f(x)f(y)=f(x+y),∀x,y∈S \\
ii) f(g(x))=f(x),∀x∈S\\
iii) f(x+n)=f(x),∀x∈S\\
iv) g is bijective.\\Find the number of pair of such functions (f,g) for every n.