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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A306216 Successive concatenation of the current sequence with the first differences of the sequence, a(1) = a(2) = 1. 1
1, 1, 0, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 1, -1, 1, -1, 0, -1, 0, -1, 1, -1, 1, -1, 1, -1, 1, -1, 2, -2, 2, -2, 0, -1, 0, -1, 1, -1, 1, -1, 1, -1, 1, -1, 2, -2, 2, -2, 1, -1, 1, -1, 2, -2, 2, -2, 2, -2, 2, -2, 3, -4, 4, -4, 0, -1, 0, -1, 1, -1, 1, -1, 1, -1 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,30

COMMENTS

n | generation             | first differences

--+------------------------+-------------------

1 | [1,1]                  | [0]

2 | [1,1,0]                | [0,-1]

3 | [1,1,0,0,-1]           | [0,-1,0,-1]

4 | [1,1,0,0,-1,0,-1,0,-1] | [0,-1,0,-1,1,-1,1,-1]

LINKS

Peter Kagey, Table of n, a(n) for n = 1..8193 (first 14 generations)

MATHEMATICA

Nest[Join[#, Differences@ #] &, {1, 1}, 7] (* Michael De Vlieger, Jan 29 2019 *)

PROG

(Ruby)

generations = 10

(1...generations).reduce([1, 1]) do |s, _|

  s += s.each_cons(2).map { |a, b| b - a }

end

(Haskell)

a306216_list = 1 : 1 : concat (Data.List.unfoldr nextGeneration [1, 1]) where

  nextGeneration l = Just (diff l, l ++ diff l)

  diff xs =  zipWith subtract xs (tail xs)

CROSSREFS

Cf. A107946, A306211.

Sequence in context: A037867 A122879 A037866 * A238451 A205777 A053398

Adjacent sequences:  A306213 A306214 A306215 * A306217 A306218 A306219

KEYWORD

sign,look

AUTHOR

Peter Kagey, Jan 29 2019

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 October 14 08:54 EDT 2019. Contains 327995 sequences. (Running on oeis4.)