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!)
A184989 Digits of n and of n-1 interleaved in decimal representation. 1

%I #13 Aug 11 2015 17:36:40

%S 10,21,32,43,54,65,76,87,98,190,1110,1121,1132,1143,1154,1165,1176,

%T 1187,1198,2109,2210,2221,2232,2243,2254,2265,2276,2287,2298,3209,

%U 3310,3321,3332,3343,3354,3365,3376,3387,3398,4309,4410,4421,4432,4443,4454,4465,4476,4487,4498,5409,5510,5521,5532,5543,5554,5565,5576,5587,5598

%N Digits of n and of n-1 interleaved in decimal representation.

%C A055642(a(n)) <= 2*A055642(n), equality holds iff n <> 10^k;

%C A007953(a(n)) = 2*A007953(n) - 1 + 9*A122840(n);

%C 1, 10, 2207, 7877, 9829, 2240353, 6682447, ... are the first numbers m such that a(m) is a multiple of m.

%H Reinhard Zumkeller, <a href="/A184989/b184989.txt">Table of n, a(n) for n = 1..9999</a>

%t Table[FromDigits[Riffle[IntegerDigits[n],IntegerDigits[n-1]]],{n,60}] (* _Harvey P. Dale_, Aug 11 2015 *)

%o (Haskell)

%o a184989 n = read $ interleave (show n) (show (n - 1)) :: Integer where

%o interleave [] ys = ys

%o interleave (x:xs) ys = x : interleave ys xs

%K nonn,base,look

%O 1,1

%A _Reinhard Zumkeller_, Mar 29 2011

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 18 06:08 EDT 2024. Contains 371767 sequences. (Running on oeis4.)