OFFSET
0,4
COMMENTS
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
Rémy Sigrist, C++ program
EXAMPLE
The first terms, alongside the binary expansion of a(n)*n, are:
n a(n) bin(a(n)*n)
-- ---- -----------
0 1 0
1 1 1
2 1 10
3 7 10101
4 1 100
5 1 101
6 7 101010
7 3 10101
8 1 1000
9 9 1010001
10 1 1010
11 31 101010101
12 7 1010100
MATHEMATICA
(* Increase nmax for n>92 in A377412 *) nmax = 1000; b[n_] := FromDigits[IntegerDigits[n, 2], 4]; A126684=Union[A000695 = b /@ Range[0, nmax], 2 A000695][[1 ;; nmax+1]] ; A377412={}; Do[k=0; Until[MemberQ[A126684, k*n], k++]; AppendTo[A377412, k], {n, 0, 72}]; A377412 (* James C. McMahon, Oct 29 2024 *)
PROG
(C++) // See Links section.
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Rémy Sigrist, Oct 27 2024
STATUS
approved