login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A083828 Let x(n) = 123...n, y(n) = n...321; c(n) = delete the LSD of y(n) and concatenated with x(n); d(n) = delete LSD of x(n) and concatenate with y(n). a(n) = c(n) - d(n). 0

%I #8 Aug 23 2014 14:55:10

%S 0,91,19802,3086913,419758024,53086469135,6419753580246,

%T 753086424691357,86419753135802468,-13580245898641975411,

%U -123580236689876419763310,-234580144678997654198553209,7754320775431099224567922456892

%N Let x(n) = 123...n, y(n) = n...321; c(n) = delete the LSD of y(n) and concatenated with x(n); d(n) = delete LSD of x(n) and concatenate with y(n). a(n) = c(n) - d(n).

%e x(3) = 123, y(3) = 321

%e c(3) = 32123, d(3) = 12321.

%e a(3) = c(3) - d(3) = 19802.

%o (PARI) { for(n=1,20, if(n==1,x=1; y=1; l=1; ln=1; ln=length(Str(n)); x=x*10^ln+n; y=n*10^l+y; l=l+ln; ); print((floor(y/10)*10^l + x)-(floor(x/10)*10^l + y)); ); }

%Y Cf. A083827.

%K base,easy,sign

%O 1,2

%A _Amarnath Murthy_ and Meenakshi Srikanth (menakan_s(AT)yahoo.com), May 09 2003

%E More terms from _Ray Chandler_, Jul 23 2003

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)