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!)
A068792 a(n) = (n-1)*n^(n-2) + Sum_{i=1..n} (n-i)*(n^(n-i-1) + n^(n+i-3)). 3
1, 16, 441, 24336, 2418025, 384473664, 89755965649, 28953439105600, 12345678987654321, 6727499948806851600, 4562491230669011577289, 3769449794266138309731600, 3727710895159027432980276121, 4348096581244536814777202995456, 5907679981266292758213173560296225 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,2
COMMENTS
a(n) is a palindrome in base n representation for all n.
LINKS
FORMULA
a(n) = ( (n^(n-1) - 1)/(n-1) )^2.
a(n) = ((A023811(n) - n + 1)/n)*n^(n-1) + A062813(n)/n.
a(n) = A060072(n)^2.
EXAMPLE
a(8) = 89755965649 = (1234567654321)OCT;
a(10) = 12345678987654321 = A057139(9);
a(16) = 5907679981266292758213173560296225 = (123456789ABC...987654321)HEX.
MATHEMATICA
Table[((n^(n-1) -1)/(n-1))^2, {n, 2, 30}] (* G. C. Greubel, Aug 16 2022 *)
PROG
(Magma) [((n^(n-1) -1)/(n-1))^2: n in [2..30]]; // G. C. Greubel, Aug 16 2022
(SageMath) [((n^(n-1) -1)/(n-1))^2 for n in (2..30)] # G. C. Greubel, Aug 16 2022
(Python)
def A068792(n): return ((n**(n-1)-1)//(n-1))**2 # Chai Wah Wu, Mar 18 2024
CROSSREFS
Sequence in context: A000489 A075852 A260853 * A229583 A241077 A318937
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Mar 04 2002
EXTENSIONS
More terms from G. C. Greubel, Aug 16 2022
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 23 20:33 EDT 2024. Contains 371916 sequences. (Running on oeis4.)