OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..500
FORMULA
a(n) = n^(floor((n+1)/2)) = n^ceiling(n/2).
EXAMPLE
Examples added by N. J. A. Sloane, Jun 17 2014:
n=1: 1 (1).
n=2: 11, 22 (2).
n=3: 111X3, 121X6 (9).
n=4: 1111X4, 1221X12 (16).
n=5: 11111X5, 11211X20, 12221X20, 12121X20, 12321X60 (125).
MAPLE
a:= n-> n^ceil(n/2): seq(a(n), n=0..30); # Alois P. Heinz, Jul 23 2014
MATHEMATICA
Join[{1}, Table[n^Ceiling[n/2], {n, 30}]] (* Wesley Ivan Hurt, Jan 15 2017 *)
PROG
(PARI) for(n=1, 22, print1(n^((n+n%2)/2), ", "))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mark Sterling, Dec 18 2002
EXTENSIONS
Extended by Klaus Brockhaus, Dec 19 2002
a(0)=1 inserted by Alois P. Heinz, Jul 23 2014
STATUS
approved