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!)
A332249 a(n) is the X-coordinate of the n-th point of the quadratic Koch curve. Sequence A332250 gives Y-coordinates. 5

%I #22 Feb 12 2020 16:18:06

%S 0,1,1,2,2,3,3,2,2,3,3,4,4,5,5,6,6,7,7,6,6,7,7,8,8,9,9,8,8,9,9,8,8,7,

%T 7,6,6,5,5,6,6,7,7,8,8,9,9,8,8,9,9,10,10,11,11,12,12,11,11,12,12,13,

%U 13,14,14,15,15,16,16,15,15,16,16,17,17,18,18,19

%N a(n) is the X-coordinate of the n-th point of the quadratic Koch curve. Sequence A332250 gives Y-coordinates.

%C This sequence is the real part of {f(n)} defined as:

%C - f(0) = 0,

%C - f(n+1) = f(n) + i^t(n)

%C where t(n) is the number of 1's minus the number of 3's

%C in the base 5 representation of n

%C and i denotes the imaginary unit.

%C We can also build the curve by successively applying the following substitution to an initial vector (1, 0):

%C .--->.

%C ^ |

%C | v

%C .--->. .--->.

%H Rémy Sigrist, <a href="/A332249/b332249.txt">Table of n, a(n) for n = 0..15625</a>

%H Robert Ferréol (MathCurve), <a href="https://www.mathcurve.com/fractals/kochquadratique/kochquadratique.shtml">Courbe de Koch quadratique</a> [in French]

%H Rémy Sigrist, <a href="/A332249/a332249.png">Representation of the first 1+2^10 points of the quadratic Koch curve</a>

%H <a href="/index/Con#coordinates_2D_curves">Index entries for sequences related to coordinates of 2D curves</a>

%F a(5^k-m) + a(m) = 3^k for any k >= 0 and m = 0..5^k.

%o (PARI) { k = [0, 1, 0, -1, 0]; z=0; for (n=0, 77, print1 (real(z) ", "); z += I^vecsum(apply(d -> k[1+d], digits(n, #k)))) }

%Y See A332246 for a similar sequence.

%Y Cf. A229217, A332250 (Y-coordinates).

%K nonn,base

%O 0,4

%A _Rémy Sigrist_, Feb 08 2020

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 July 20 06:10 EDT 2024. Contains 374441 sequences. (Running on oeis4.)