The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A033077 Numbers in which all pairs of consecutive base-6 digits differ by 3. 2
1, 2, 3, 4, 5, 10, 17, 18, 25, 32, 61, 104, 111, 154, 197, 370, 629, 666, 925, 1184, 2221, 3776, 3999, 5554, 7109, 13330, 22661, 23994, 33325, 42656, 79981, 135968, 143967, 199954, 255941, 479890, 815813, 863802, 1199725, 1535648, 2879341, 4894880, 5182815 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,6,0,0,0,0,1,0,0,0,0,-6).
FORMULA
G.f.: (1+2*x+3*x^2+4*x^3+5*x^4+4*x^5+5*x^6+1*x^8+2*x^9)*x / (1-6*x^5-1*x^10+6*x^15). - Alois P. Heinz, Feb 25 2011
a(n) = 6*a(n-5)+a(n-10)-6*a(n-15) for n>15. - Colin Barker, Jun 01 2015
MAPLE
a:= proc(n) local c, d, i, m; c, d:= 0, 1+irem(n-1, 5, 'm'); for i to m+1 do c:= 6*c +d; d:= d +`if`(d<3, 3, -3) od; c end:
seq(a(n), n=1..50); # Alois P. Heinz, Feb 26 2011
MATHEMATICA
Join[Range[5], Select[Range[52*10^5], Union[Abs[Differences[ IntegerDigits[ #, 6]]]] == {3}&]] (* Harvey P. Dale, Oct 25 2020 *)
PROG
(PARI) Vec((1+2*x+3*x^2+4*x^3+5*x^4+4*x^5+5*x^6+1*x^8+2*x^9)*x/ (1-6*x^5-1*x^10+6*x^15) + O(x^100)) \\ Colin Barker, Jun 01 2015
CROSSREFS
Cf. A033082.
Sequence in context: A179146 A099161 A369592 * A190912 A306108 A282033
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved

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 May 21 08:56 EDT 2024. Contains 372733 sequences. (Running on oeis4.)