A007395 Constant sequence: the all 2's sequence.
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, 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, 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
Offset: 1
References
- Titu Andreescu and Dorin Andrica, Number Theory, Birkhäuser, 2009, from 1999 Russian Mathematical Olympiad, p. 347.
- Paulo Ribenboim, My Numbers, My Friends: Popular Lectures on Number Theory, Springer-Verlag, NY, 2000, p. 6.
- N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
Links
- 25th All-Russian Mathematical Olympiad, Grade 10, Problem 2, p. 2, 1999.
- Tobias Boege and Thomas Kahle, Construction Methods for Gaussoids, arXiv:1902.11260 [math.CO], 2019.
- Keith Conrad, The p-adic growth of harmonic sums
- Daniele A. Gewurz and Francesca Merola, Sequences realized as Parker vectors of oligomorphic permutation groups, J. Integer Seqs., Vol. 6, 2003.
- R. H. Hardin, Binary arrays with both rows and cols sorted, symmetries
- Tanya Khovanova, Recursive Sequences
- Mihai Prunescu, On other two representations of the C-recursive integer sequences by terms in modular arithmetic, arXiv:2406.06436 [math.NT], 2024. See p. 18.
- Mihai Prunescu and Lorenzo Sauras-Altuzarra, On the representation of C-recursive integer sequences by arithmetic terms, arXiv:2405.04083 [math.LO], 2024. See p. 16.
- Mihai Prunescu and Joseph M. Shunia, On modular representations of C-recursive integer sequences, arXiv:2502.16928 [math.NT], 2025. See p. 5.
- Aram Tangboonduangjit and Thotsaporn Thanatipanonda, Determinants Containing Powers of Generalized Fibonacci Numbers, arXiv:1512.07025 [math.CO], 2015.
- Eric Weisstein's World of Mathematics, Hamiltonian Cycle
- Dominika Závacká, Cristina Dalfó, and Miquel Angel Fiol, Integer sequences from k-iterated line digraphs, CEUR: Proc. 24th Conf. Info. Tech. - Appl. and Theory (ITAT 2024) Vol 3792, 156-161. See p. 161, Table 2.
- Index to divisibility sequences
- Index entries for recurrences a(n) = k*a(n - 1) +/- a(n - 2)
- Index entries for linear recurrences with constant coefficients, signature (1).
Programs
-
Haskell
a007395 = const 2 a007395_list = repeat 2 -- Reinhard Zumkeller, May 07 2012
-
Mathematica
Table[2, {105}]
-
Maxima
makelist(2,n,0,30); /* Martin Ettl, Nov 09 2012 */
-
PARI
a(n) = 2 \\ Charles R Greathouse IV, Apr 07 2012
-
Python
def A007395(n): return 2 # Chai Wah Wu, Nov 10 2022
Formula
G.f.: 2/(1-x), and e.g.f.: 2*e^x. - Mohammad K. Azarian, Dec 22 2008
Comments