A002441 Squares written in base 8.
1, 4, 11, 20, 31, 44, 61, 100, 121, 144, 171, 220, 251, 304, 341, 400, 441, 504, 551, 620, 671, 744, 1021, 1100, 1161, 1244, 1331, 1420, 1511, 1604, 1701, 2000, 2101, 2204, 2311, 2420, 2531, 2644, 2761, 3100, 3221, 3344, 3471, 3620, 3751, 4104, 4241
Offset: 1
References
- N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
- N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
- V. Thébault, Les Récréations Mathématiques. Gauthier-Villars, Paris, 1952, p. 95.
Programs
-
Magma
[Seqint(Intseq(n^2, 8)): n in [1..60]]; // Vincenzo Librandi, Oct 16 2015
-
Mathematica
Table[BaseForm[n^2,8],{n,5!}] (* Vladimir Joseph Stephan Orlovsky, May 12 2010 *) Table[FromDigits[IntegerDigits[n^2, 8]], {n, 60}] (* Vincenzo Librandi, Oct 15 2015 *)
-
PARI
a(n)=fromdigits(digits(n^2,8)) \\ Charles R Greathouse IV, Apr 25 2016
Formula
Extensions
More terms from James Sellers, Sep 08 2000