The AOPS topic had the formula written as
f(n)=
If you look at this page, you can see about halfway down the page under the heading "Cases and distinctions" that the "\text{if }", which causes a problem in AopsWiki, should be replaced with "\mbox{if }".