OFFSET
1,1
COMMENTS
When will this first differ from A159887, the trajectory of 29 under repeated application of the map n -> A102370(n)?
A bound on the sequences starting to differ is when the appearance of 2^135 - 135 here is followed by 2^135 - 5. This is because A102370(2^135 - 135) = 2^136 - 5. - Peter Munn, Jan 12 2024
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
David Applegate, Benoit Cloitre, Philippe Deléham and N. J. A. Sloane, Sloping binary numbers: a new sequence related to the binary numbers, J. Integer Seq. 8 (2005), no. 3, Article 05.3.6, 15 pp.
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1).
MATHEMATICA
Select[Range[900], MemberQ[{29, 39, 41, 43, 45, 55, 57, 59, 93, 103, 105, 107, 109, 119, 121, 251}, Mod[#, 256]]&] (* Harvey P. Dale, Mar 09 2014 *)
LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -1}, {29, 39, 41, 43, 45, 55, 57, 59, 93, 103, 105, 107, 109, 119, 121, 251, 285}, 55] (* Ray Chandler, Jul 15 2015 *)
PROG
(Magma) [n: n in [1..1000] | n mod 256 in [-5, 29, 39, 41, 43, 45, 55, 57, 59, 93, 103, 105, 107, 109, 119, 121, 251]]; // Vincenzo Librandi, Mar 11 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Philippe Deléham, Apr 25 2009
EXTENSIONS
Corrected by Harvey P. Dale, Mar 09 2014
Edited by Peter Munn, Dec 06 2023
STATUS
approved