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.

A069829 a(n) = PS(n)(2n), where PS is described in A057032.

This page as a plain text file.
%I A069829 #17 Apr 24 2024 08:08:20
%S A069829 2,5,9,11,13,19,17,23,31,26,25,40,29,47,58,51,37,69,41,56,71,67,49,82,
%T A069829 70,73,92,95,61,123,65,105,118,94,112,148,77,107,134,116,85,143,89,
%U A069829 122,177,127,97,166,130,133,175,162,109,211,159,188,190,154,121,248,125
%N A069829 a(n) = PS(n)(2n), where PS is described in A057032.
%C A069829 a(n) = PS(n + c)(2n + c) for any positive integer c. Every positive integer occurs exactly once in either this sequence or in A057032.
%H A069829 Alois P. Heinz, <a href="/A069829/b069829.txt">Table of n, a(n) for n = 1..10000</a>
%p A069829 A069829 := proc(n) local N, k; N := n;
%p A069829 for k from n by -1 to 1 do
%p A069829     if irem(N, k) = 0 then
%p A069829         if irem(N, k)::odd then
%p A069829             N := N - k;
%p A069829         else
%p A069829             N := N + k;
%p A069829         fi;
%p A069829     fi;
%p A069829 od;
%p A069829 N end:
%p A069829 seq(A069829(n), n = 1..61); # _Peter Luschny_, Sep 14 2019
%Y A069829 Cf. A057032.
%K A069829 nonn,look,easy
%O A069829 1,1
%A A069829 _David Wasserman_, Apr 22 2002