OFFSET
0,3
COMMENTS
More than the usual number of terms are displayed in order to distinguish this from some closely related sequences. - N. J. A. Sloane, Mar 22 2014
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,0,1,-1).
FORMULA
G.f.: x*(x^2 +x +1)*(x^6 +x^3 +1) / ((x -1)^2*(x +1)*(x^4 -x^3 +x^2 -x +1)*(x^4 +x^3 +x^2 +x +1)). - Colin Barker, Jun 24 2014
a(n) = n - floor(n/10). - Bruno Berselli, Jun 24 2014
MAPLE
f1:=proc(n) local x, y;
y:= (n mod 10);
x:=(n-y)/10;
9*x+y;
end;
[seq(f1(n), n=0..200)];
PROG
(PARI) my(n, x, y); vector(500, n, y=(n-1)%10; x=(n-1-y)\10; 9*x+y) \\ Colin Barker, Jun 23 2014
(PARI) a(n)=n - n\10 \\ Charles R Greathouse IV, Sep 01 2015
(Magma) k:=9; [n-(10-k)*Floor(n/10): n in [0..150]]; // Bruno Berselli, Jun 24 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Apr 22 2003
STATUS
approved