cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A308267 Numbers k such that k divides A048678(k).

This page as a plain text file.
%I A308267 #33 Jan 10 2022 22:30:10
%S A308267 1,2,4,7,8,14,16,28,31,32,56,62,64,83,112,124,127,128,166,224,248,254,
%T A308267 256,332,397,448,496,508,511,512,664,794,891,896,992,1016,1022,1024,
%U A308267 1163,1328,1588,1782,1792,1984,2032,2044,2047,2048,2326,2656,3176,3441,3564,3584,3968
%N A308267 Numbers k such that k divides A048678(k).
%C A308267 Apparently includes all powers of 2.
%C A308267 All numbers 2^(2k+1)-1 are in this sequence, and if n is in this sequence then so is 2n. - _Charlie Neder_, May 17 2019
%e A308267 The first few terms of A048678 are 1,2,5,4,9,10,21,8. 2 is a multiple of 2, 5 isn't a multiple of 3, 4 is a multiple of 4, 9 isn't a multiple of 5, 10 isn't a multiple of 6, 21 is a multiple of 7, etc.
%t A308267 Select[Range[4000], Divisible[FromDigits[Flatten[IntegerDigits[#, 2] /. {1 -> {0, 1}}], 2], #] &] (* _Amiram Eldar_, Jul 08 2019 after _Robert G. Wilson v_ at A048678 *)
%o A308267 (Haskell) bintodec :: [Integer] -> Integerbintodec = sum . zipWith (*) (iterate (*2) 1) . reverse
%o A308267 decomp :: (Integer, [Integer]) -> (Integer, [Integer])decomp (x, ys) = if even x then (x `div` 2, 0:ys) else (x - 1, 1:ys)
%o A308267 zeck :: Integer -> Integerzeck n = bintodec (1 : snd (last . takeWhile (\(x, _) -> x > 0) $ iterate decomp (n, [])))
%o A308267 output :: [Integer]output = filter (\x -> 0 == zeck x `mod` x) [1..100]
%o A308267 main :: IO ()main = print output
%Y A308267 Cf. A048678, A083420 (subsequence).
%K A308267 nonn,base
%O A308267 1,2
%A A308267 _Dan Dart_, May 17 2019