cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A216556 Concatenate decimal digits of n, each increased by 1.

This page as a plain text file.
%I A216556 #26 Dec 23 2024 14:53:43
%S A216556 1,2,3,4,5,6,7,8,9,10,21,22,23,24,25,26,27,28,29,210,31,32,33,34,35,
%T A216556 36,37,38,39,310,41,42,43,44,45,46,47,48,49,410,51,52,53,54,55,56,57,
%U A216556 58,59,510,61,62,63,64,65,66,67,68,69,610,71,72,73,74,75,76,77
%N A216556 Concatenate decimal digits of n, each increased by 1.
%C A216556 In all of the terms, a digit '0' can only occur preceded by a digit '1', and an initial digit '1' can only appear followed by a '0'.
%C A216556 Sequence A216589 lists the complement of the range of this map.
%C A216556 This is an injective map, A216587 is its left inverse. - _M. F. Hasler_, Sep 09 2012
%H A216556 Michael De Vlieger, <a href="/A216556/b216556.txt">Table of n, a(n) for n = 0..10000</a>
%H A216556 E. Angelini, <a href="https://web.archive.org/web/*/http://list.seqfan.eu/oldermail/seqfan/2012-September/010124.html">Strings resurrection</a>, SeqFan mailing list, Sep 08 2012.
%e A216556 a(19) = concat(1+1,9+1) = 210.
%t A216556 Array[FromDigits@ Flatten[IntegerDigits[#] + 1 /. 10 -> {1, 0}] &, 91, 0] (* _Michael De Vlieger_, Jan 04 2020 *)
%o A216556 (PARI)  A216556(n)={my(t=1);until(n<t*=10,(n+=t)\t%10||n+=(n-t)\(t*=10)*9*t);n}
%Y A216556 Cf. A216557, A216587, A216589.
%K A216556 nonn,easy,base
%O A216556 0,2
%A A216556 _M. F. Hasler_, Sep 08 2012