2017-11-13 00:54:18 UTC
So as the above sentence suggests, there's game (equations? formula? function?) I've pen-and-papered with myself for years that involves the square pyramidal sequence.
For example I take 3:
3 | 9 | 14
And on one side of the paper, I'd write:
The other side would have the variable in particular and might look like for example.
The problems between these two would then go as follows:
The 2.38 is greater than 2, so I'd change the 3 to a 4 on the one side of the paper and have:
And the problems will go as:
There's other rules I throw in to the game that is effectively a sort of pen and paper numbers simulation, but for now, if anyone can see the pattern I go through with here, what's a shorthand way to put these (functions? Formulas? Equations?) into code to reduce human error in sorting out my answers?
I also apologize if I don't know whether to call these functions or formulas. Again, I don't have a lot of knowledge in math terminology.