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.

A067694 Minimum number of distinct parts in a self-conjugate partition of n, or 0 if n=2.

This page as a plain text file.
%I A067694 #9 Sep 27 2018 17:53:59
%S A067694 0,1,0,2,1,2,3,2,2,1,3,2,2,2,3,2,1,2,3,2,2,2,3,2,2,1,3,2,2,2,3,2,2,2,
%T A067694 3,2,1,2,3,2,2,2,3,2,2,2,3,2,2,1,3,2,2,2,3,2,2,2,3,2,2,2,3,2,1,2,3,2,
%U A067694 2,2,3,2,2,2,3,2,2,2,3,2,2,1,3,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,3,2,1,2,3
%N A067694 Minimum number of distinct parts in a self-conjugate partition of n, or 0 if n=2.
%C A067694 There are no self-conjugate partitions of 2, so we set a(2)=0.
%H A067694 Antti Karttunen, <a href="/A067694/b067694.txt">Table of n, a(n) for n = 0..65537</a>
%F A067694 a(0)=a(2)=0; a(n^2)=1; a(4n+2)=3 for n>0; a(n)=2 in all other cases.
%t A067694 a[0]=a[2]=0; a[n_] := Which[IntegerQ[Sqrt[n]], 1, Mod[n, 4]==2, 3, True, 2]
%o A067694 (PARI) A067694(n) = if((2==n)||!n,0,if(2==(n%4),3,if(issquare(n),1,2))); \\ _Antti Karttunen_, Sep 27 2018
%Y A067694 Cf. A000700, A067731.
%K A067694 easy,nonn
%O A067694 0,4
%A A067694 _Naohiro Nomoto_, Feb 05 2002
%E A067694 Edited by _Dean Hickerson_, Feb 15 2002