cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A284624 Positions of 1 in A284749.

This page as a plain text file.
%I A284624 #34 May 22 2025 18:16:28
%S A284624 2,5,9,12,16,20,23,27,30,34,38,41,45,49,52,56,59,63,67,70,74,77,81,85,
%T A284624 88,92,96,99,103,106,110,114,117,121,125,128,132,135,139,143,146,150,
%U A284624 153,157,161,164,168,172,175,179,182,186,190,193,197,200,204,208
%N A284624 Positions of 1 in A284749.
%C A284624 This sequence and A214971 and A284625 partition the positive integers into sequences with slopes t = (5+sqrt(5))/2, u = (5+sqrt(5))/2, v = sqrt(5), where 1/t + 1/u + 1/v = 1. The positions of 0 in A284749 are given by A214971, and of 2, by A284625.
%H A284624 Clark Kimberling, <a href="/A284624/b284624.txt">Table of n, a(n) for n = 1..10000</a>
%H A284624 J.-P. Allouche, F. M. Dekking, <a href="https://arxiv.org/abs/1809.03424">Generalized Beatty sequences and complementary triples</a>, arXiv:1809.03424v3 [math.NT], 2018-2019.
%F A284624 Conjectured: a(n) = 1 + A214971(n).
%F A284624 Proof of this conjecture: it is easy to see that the infinite Fibonacci word A003849 is a concatenation of the words 01 and 001. So if we replace all 001 by 2, only the 01 remain, i.e., every 0 is directly followed by 1. - _Michel Dekking_, Aug 19 2018
%F A284624 a(n) = floor((n-1)*phi) + 2*(n-1) + 2  (Theorem 31 in Allouche and Dekking). - _Michel Dekking_, Oct 08 2018
%e A284624 As a word, A284749 = 012012201201220122..., in which 1 is in positions 2,5,9,12,...
%t A284624 s = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {0}}] &, {0}, 13]  (* A003849 *)
%t A284624 w = StringJoin[Map[ToString, s]]
%t A284624 w1 = StringReplace[w, {"001" -> "2"}]
%t A284624 st = ToCharacterCode[w1] - 48 (* A284749 *)
%t A284624 Flatten[Position[st, 0]]  (* A214971 conjectured *)
%t A284624 Flatten[Position[st, 1]]  (* A284624 *)
%t A284624 Flatten[Position[st, 2]]  (* A284625 *)
%o A284624 (Python)
%o A284624 from math import isqrt
%o A284624 def A284624(n): return (n<<1)+(n-1+isqrt(5*(n-1)**2)>>1) # _Chai Wah Wu_, May 22 2025
%Y A284624 Cf. A214971, A284625, A284749.
%K A284624 nonn,easy
%O A284624 1,1
%A A284624 _Clark Kimberling_, May 02 2017