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!)
A007395 Constant sequence: the all 2's sequence.
(Formerly M0208)
121

%I M0208 #152 Mar 21 2024 10:18:59

%S 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,

%T 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,

%U 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2

%N Constant sequence: the all 2's sequence.

%C Continued fraction for 1 + sqrt(2). - _Philippe Deléham_, Nov 14 2006

%C a(n) = A213999(n,1). - _Reinhard Zumkeller_, Jul 03 2012

%C The least witness function W(k) is defined for odd composite numbers k. The sequence W(k) does not have its own entry in the OEIS because W(k) = 2 for all k with 9 <= k < 2047; then W(2047)=3. Cf. A089105. - _N. J. A. Sloane_, Sep 17 2014

%C a(n) = A254858(n-1,1). - _Reinhard Zumkeller_, Feb 09 2015

%C a(n) = number of permutations of length n+2 having exactly one ascent such that the first element the permutation is 2. - _Ran Pan_, Apr 20 2015

%C With alternating signs, this is the sequence of determinants of the 3 X 3 matrices m with m(i,j) = Fibonacci(n+i+j-2)^2. - _Michel Marcus_, Dec 23 2015

%C For p = prime(n+2), a(n) = ord_p(H_(p-1)), where ord_p denotes the p-adic valuation and H_i = 1 + 1/2 + ... + 1/i is a harmonic sum, except for n = 1944 and n = 157504, where ord_p(H_(p-1)) = 3, and any other term of A088164 that may exist (see Conrad link). The sequence a(n) = ord_p(H_(p-1)) does not have its own entry in the OEIS. - _Felix Fröhlich_, Mar 16 2016

%C This sequence is the only infinite bounded sequence of positive integers such that a(n) = (a(n-1) + a(n-2)) / gcd(a(n-1), a(n-2)) for all n >= 2. - _Bernard Schott_, Dec 28 2018

%D Titu Andreescu and Dorin Andrica, Number Theory, Birkhäuser, 2009, from 1999 Russian Mathematical Olympiad, p. 347.

%D N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

%H 25th All-Russian Mathematical Olympiad, <a href="http://imomath.com/othercomp/Rus/RusMO99.pdf">Grade 10, Problem 2</a>, p. 2, 1999.

%H Tobias Boege and Thomas Kahle, <a href="https://arxiv.org/abs/1902.11260">Construction Methods for Gaussoids</a>, arXiv:1902.11260 [math.CO], 2019.

%H K. Conrad, <a href="http://www.math.uconn.edu/~kconrad/blurbs/ugradnumthy/padicharmonicsum.pdf">The p-adic growth of harmonic sums</a>

%H Daniele A. Gewurz and Francesca Merola, <a href="http://www.cs.uwaterloo.ca/journals/JIS/VOL6/Gewurz/gewurz5.html">Sequences realized as Parker vectors of oligomorphic permutation groups</a>, J. Integer Seqs., Vol. 6, 2003.

%H R. H. Hardin, <a href="/A151801/a151801.txt">Binary arrays with both rows and cols sorted, symmetries</a>

%H Tanya Khovanova, <a href="http://www.tanyakhovanova.com/RecursiveSequences/RecursiveSequences.html">Recursive Sequences</a>

%H Aram Tangboonduangjit and Thotsaporn Thanatipanonda, <a href="http://arxiv.org/abs/1512.07025">Determinants Containing Powers of Generalized Fibonacci Numbers</a>, arXiv:1512.07025 [math.CO], 2015.

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/HamiltonianCycle.html">Hamiltonian Cycle</a>

%H <a href="/index/Di#divseq">Index to divisibility sequences</a>

%H <a href="/index/Rea#recur1">Index entries for recurrences a(n) = k*a(n - 1) +/- a(n - 2)</a>

%H <a href="/index/Rec#order_01">Index entries for linear recurrences with constant coefficients</a>, signature (1).

%F G.f.: 2/(1-x), and e.g.f.: 2*e^x. - _Mohammad K. Azarian_, Dec 22 2008

%F a(n) = A000005(A000040(n)). - _Omar E. Pol_, Feb 28 2018

%F a(n) = A002061(n) - A165900(n). - _Torlach Rush_, Feb 21 2019

%t Table[2, {105}]

%o (PARI) a(n) = 2 \\ _Charles R Greathouse IV_, Apr 07 2012

%o (Haskell)

%o a007395 = const 2

%o a007395_list = repeat 2 -- _Reinhard Zumkeller_, May 07 2012

%o (Maxima) makelist(2,n,0,30); /* _Martin Ettl_, Nov 09 2012 */

%o (Python)

%o def A007395(n): return 2 # _Chai Wah Wu_, Nov 10 2022

%Y Cf. A000004, A000012, A002061, A010701, A089105, A165900.

%Y Cf. A213999, A254858.

%K nonn,easy

%O 1,1

%A _N. J. A. Sloane_

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 25 11:39 EDT 2024. Contains 371969 sequences. (Running on oeis4.)