login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A256433 Characteristic function of dodecahedral numbers. 2
1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0
COMMENTS
Dodecahedral numbers are of the form m(3m-1)(3m-2)/2.
LINKS
FORMULA
For n > 0, a(n) = floor(t(n) + 1/(27 * t(n)) + 1/3) - floor(t(n-1) + 1/(27 * t(n-1)) + 1/3), where t(n) = ( sqrt(243*n^2-1)/(3^(9/2)) + n/9 )^(1/3).
MATHEMATICA
With[{ddn=Table[m(3m-1)(3m-2)/2, {m, 0, 10}]}, Table[If[MemberQ[ddn, n], 1, 0], {n, 0, 100}]] (* Harvey P. Dale, Oct 18 2015 *)
PROG
(PARI)
A006566(n) = (n*(3*n-1)*(3*n-2)/2);
A256433(n) = { my(i=0); while(A006566(i) < n, i++); return(A006566(i) == n); }; \\ Antti Karttunen, Aug 05 2018
CROSSREFS
Cf. A006566 (dodecahedral numbers).
Sequence in context: A292547 A014032 A014055 * A014028 A014047 A016411
KEYWORD
nonn
AUTHOR
Mikael Aaltonen, Mar 28 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 13:50 EDT 2024. Contains 371780 sequences. (Running on oeis4.)