Only two things can be told:
1) The name of the game, Petals Around the Rose, is significant.
2) The answer is always either zero or an even number
http://www.borrett.id.au/computing/petals-j.htm
It took me a few minutes to figure it out and while I had the idea, I did not try guessing any answers first.