OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MAPLE
R:=proc(n) local nn, nnn: nn:=convert(n, base, 10): add(nn[nops(nn)+1-j]*10^(j-1), j=1..nops(nn)) end: a:=n->floor(n/2+R(n)/2): seq(a(n), n=1..85); # R is the Maple program that yields the digit reversal of n. # Emeric Deutsch, Aug 06 2005
MATHEMATICA
Do[Print[Floor[(n + FromDigits[Reverse[IntegerDigits[n]]]) / 2]], {n, 1, 50}] (* Ryan Propper, Jul 20 2005 *)
Array[Floor[(#+IntegerReverse[#])/2]&, 80] (* Harvey P. Dale, Aug 27 2022 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Feb 11 2003
EXTENSIONS
36 more terms from Ryan Propper, Jul 20 2005
More terms from Emeric Deutsch, Aug 06 2005
STATUS
approved