login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A296130 Replace each digit of n with its complement to 9; this will reproduce all digits of n in a different order. 1
18, 27, 36, 45, 54, 63, 72, 81, 90, 1089, 1098, 1188, 1278, 1287, 1368, 1386, 1458, 1485, 1548, 1584, 1638, 1683, 1728, 1782, 1809, 1818, 1827, 1836, 1845, 1854, 1863, 1872, 1881, 1890, 1908, 1980, 2079, 2097, 2178, 2187, 2277, 2367, 2376, 2457, 2475, 2547, 2574, 2637, 2673, 2709, 2718 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

The complement of 0 is 9, of 1 is 8, of 2 is 7, etc. All terms of the sequence have an even number of digits, and all terms are divisible by 9.

LINKS

Jean-Marc Falcoz, Table of n, a(n) for n = 1..3000

EXAMPLE

18 produces 81 when 1 is replaced by 8 and 8 is replaced by 1; 18 and 81 use the same set of digits, in a different order.

1089 produces 8910 when 1 is replaced by 8, 0 by 9, 8 by 1 and 9 by 0; 1089 and 8910 use the same set of digits, in a different order.

PROG

(PARI) replace_digits(n) = my(d=digits(n)); for(k=1, #d, d[k]=abs(d[k]-9)); d

is(n) = vecsort(digits(n))==vecsort(replace_digits(n)) \\ Felix Fröhlich, Feb 14 2018

CROSSREFS

Cf. A061601.

Sequence in context: A082804 A262277 A144777 * A284811 A257001 A109911

Adjacent sequences:  A296127 A296128 A296129 * A296131 A296132 A296133

KEYWORD

nonn,base

AUTHOR

Eric Angelini and Jean-Marc Falcoz, Feb 14 2018

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 11 03:50 EDT 2021. Contains 342886 sequences. (Running on oeis4.)