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!)
A292031 a(n) is the smallest value m such that n appears in row m of A292030. 4

%I #16 Mar 05 2018 09:01:14

%S 0,0,0,0,3,0,5,3,0,4,9,3,11,0,4,7,15,5,3,9,6,0,21,4,23,12,8,13,5,3,29,

%T 15,10,6,0,11,35,4,7,19,39,13,41,8,14,5,45,3,9,24,16,25,51,6,53,0,18,

%U 28,11,19,4,7,20,12,63,21,65,33,13,8,69,23,71,5,24,37,3,9,15,39,26

%N a(n) is the smallest value m such that n appears in row m of A292030.

%C a(n) = 0 if and only if n is a member of A000045.

%C a(n) is never 1 nor 2 since row 1 and 2 are equal to row 0 with a shift. - _Michel Marcus_, Sep 27 2017, amended by _M. F. Hasler_, Feb 26 2018

%H Ely Golden, <a href="/A292031/b292031.txt">Table of n, a(n) for n = 0..10000</a>

%e a(3)=0 since A292030(0,5) = 3.

%e a(7)=3 since A292030(3,2) = 7.

%o (Python)

%o def smallestSeq(n):

%o if(n<0): return []

%o if(n==0): return [0,0]

%o j,r0,r1=0,0,1

%o while(r1<=n): r0,r1=r1,r0+r1 ; j+=1

%o while(r1>1):

%o if(n%r1==r0): return [n//r1,j]

%o r1,r0=r0,r1-r0

%o j-=1

%o return [n-1, j]

%o for i in range(10001):

%o print(str(i)+" "+str(smallestSeq(i)[0]))

%Y Cf. A292030.

%K nonn

%O 0,5

%A _Ely Golden_, Sep 08 2017

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 April 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)