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.

A344348 a(n) = floor(frac(e * n) * n).

This page as a plain text file.
%I A344348 #16 Jun 29 2025 12:10:14
%S A344348 0,0,0,0,3,2,1,0,5,4,1,9,7,4,0,11,7,3,16,12,7,1,17,11,5,23,17,10,3,24,
%T A344348 16,8,31,23,14,4,30,21,11,0,29,18,7,38,26,14,1,35,22,9,45,32,18,3,42,
%U A344348 27,12,53,38,22,5,49,33,15,62,44,26,8,57,38,19,70
%N A344348 a(n) = floor(frac(e * n) * n).
%H A344348 Harvey P. Dale, <a href="/A344348/b344348.txt">Table of n, a(n) for n = 0..1000</a>
%e A344348 x(n) = frac(e * n),
%e A344348 a(0) = floor(x(0) * 0) = floor(0.00 * 0) = 0,
%e A344348 a(1) = floor(x(1) * 1) = floor(0.72 * 1) = 0,
%e A344348 a(2) = floor(x(2) * 2) = floor(0.44 * 2) = 0,
%e A344348 a(3) = floor(x(3) * 3) = floor(0.15 * 3) = 0,
%e A344348 a(4) = floor(x(4) * 4) = floor(0.87 * 4) = 3.
%t A344348 Table[Floor[FractionalPart[E*n]*n],{n,0,80}] (* _Harvey P. Dale_, Jun 29 2025 *)
%o A344348 (Ruby) p (0..50).map {|n| (((Math::E * n) % 1) * n).floor }
%Y A344348 Cf. A001113, A342730 (uses primes, where this uses positive integers).
%K A344348 nonn
%O A344348 0,5
%A A344348 _Simon Strandgaard_, May 15 2021