login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A097256 Numbers whose set of base 10 digits is {0,9}. 10
0, 9, 90, 99, 900, 909, 990, 999, 9000, 9009, 9090, 9099, 9900, 9909, 9990, 9999, 90000, 90009, 90090, 90099, 90900, 90909, 90990, 90999, 99000, 99009, 99090, 99099, 99900, 99909, 99990, 99999, 900000, 900009, 900090, 900099, 900900 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

n such that there exists a permutation p_1, ..., p_n of 1, ..., n such that i + p_i is a power of 10 for every i.

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 0..10000

FORMULA

a(n) = 9*A007088(n).

a(2n) = 10*a(n), a(2n+1) = a(2n)+9.

MAPLE

A097256:=n->(9/2) * add((1-(-1)^floor(n/2^i))*10^i, i=0..n); seq(A097256(n), n=0..30); # Wesley Ivan Hurt, Feb 11 2014

MATHEMATICA

Table[(9/2) Sum[(1 - (-1)^Floor[n/2^i]) 10^i, {i, 0, n}], {n, 0, 30}] (* Wesley Ivan Hurt, Feb 11 2014 *)

PROG

(Haskell)

a097256 n = a097256_list !! n

a097256_list = map (* 9) a007088_list

-- Reinhard Zumkeller, Jan 10 2012

CROSSREFS

Cf. A001196, A005823, A097251-A097262.

Cf. A078248, A169965, A169966, A169967, A169964, A204093, A204094, A204095.

Sequence in context: A217402 A261908 A121029 * A061478 A061878 A140160

Adjacent sequences:  A097253 A097254 A097255 * A097257 A097258 A097259

KEYWORD

nonn,base

AUTHOR

Ray Chandler, Aug 03 2004

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 15 22:47 EDT 2018. Contains 316252 sequences. (Running on oeis4.)