For a positive integer $n$, let $s(n)$ be the integer obtained by shifting the leftmost digit of the decimal representation of $n$ to the rightmost position. For...
Let $g(n)$ denote the number of ways a positive integer $n$ can be represented in the form: $$x^2+xy+41y^2$$ where $x$ and $y$ are integers. For example, $g(53)=4$...
Rand48 is a pseudorandom number generator used by some programming languages. It generates a sequence from any given integer $0 \le a_0 < 2^{48}$ using the rule...
Pentagonal numbers are generated by the formula: $P_n = \tfrac 12n(3n-1)$ giving the sequence: $$1,5,12,22,35, 51,70,92,\ldots $$ Some pentagonal numbers can be expressed as the sum of...