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!)
A343949 Shortest distance from curve start to end along the segments of dragon curve expansion level n, and which is the diameter of the curve as a graph. 1
1, 2, 4, 8, 12, 18, 26, 36, 52, 70, 102, 136, 200, 266, 394, 524, 780, 1038, 1550, 2064, 3088, 4114, 6162, 8212, 12308, 16406, 24598, 32792, 49176, 65562, 98330, 131100, 196636, 262174, 393246, 524320, 786464, 1048610, 1572898, 2097188, 3145764, 4194342, 6291494 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Expansion level n is the first 2^n segments of the curve, and can be taken as a graph with visited points as vertices and segments as edges.
LINKS
Kevin Ryde, Iterations of the Dragon Curve, see index "Diameter".
FORMULA
a(0) = 1.
a(2*n) = 3*2^n + 2*n - 4 = 2*A275970(n-1), for n>=1.
a(2*n+1) = 4*2^n + 2*n - 2 = 2*A083706(n).
a(n+1) - a(n) = 2*A228693(n), for n>=1.
a(n) = a(n-1) + 3*a(n-2) - 3*a(n-3) - 2*a(n-4) + 2*a(n-5) for n >= 6.
G.f.: (1 + x - x^2 + x^3 - 4*x^5) / ((1+x) * (1-x)^2 * (1-2*x^2)).
G.f.: 2 - (1/2)/(1+x) - (9/2)/(1-x) + 1/(1-x)^2 + (3 + 4*x)/(1 - 2*x^2).
EXAMPLE
Curve n=4:
*--* *--*
| | | | Start S to end E along segments.
*--*--* *--* Distance a(4) = 12,
| | which is also graph diameter.
E *--* S--*
| |
*--*
PROG
(PARI) a(n) = if(n==0, 1, my(t=n%2); (3+t)<<(n>>1) + n-4 + t);
CROSSREFS
Cf. A332383, A332384 (curve coordinates).
Sequence in context: A293495 A330130 A053799 * A284122 A212585 A085891
KEYWORD
nonn,easy
AUTHOR
Kevin Ryde, May 05 2021
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.)