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

 

Logo

The OEIS is looking to hire part-time people to help edit core sequences, upload scanned documents, process citations, fix broken links, etc. - Neil Sloane, njasloane@gmail.com

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A097255 Numbers whose set of base 9 digits is {0,8}. 2
0, 8, 72, 80, 648, 656, 720, 728, 5832, 5840, 5904, 5912, 6480, 6488, 6552, 6560, 52488, 52496, 52560, 52568, 53136, 53144, 53208, 53216, 58320, 58328, 58392, 58400, 58968, 58976, 59040, 59048, 472392, 472400, 472464, 472472, 473040 (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 9 for every i.

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 0..1000

FORMULA

a(n) = 8*A033046(n).

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

MATHEMATICA

fQ[n_]:=Union@Join[{0, 8}, IntegerDigits[n, 9]]=={0, 8}; Select[Range[0, 500000], fQ] (* or *) FromDigits[#, 9]&/@Tuples[{0, 8}, 6](* Vincenzo Librandi, May 25 2012 *)

PROG

(MAGMA) [n: n in [0..500000] | Set(IntegerToSequence(n, 9)) subset {0, 8}]; // Vincenzo Librandi, May 25 2012

(Maxima) a[0]:0$ a[n]:=9*a[floor(n/2)]+4*(1-(-1)^n)$ makelist(a[n], n, 0, 36); /* Bruno Berselli, May 26 2012 */

CROSSREFS

Cf. A001196, A005823, A097251-A097262.

Sequence in context: A226163 A004165 A032554 * A115693 A112403 A043932

Adjacent sequences:  A097252 A097253 A097254 * A097256 A097257 A097258

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 May 26 06:20 EDT 2017. Contains 287080 sequences.